• Resolved jsem1101

    (@jsem1101)


    Hi Tobias

    When using the shortcodes to enter single cells, for example [table-cell id=5 cell=C3 /], is it possible to style these using the external style sheets, rather than inline using spans etc?

    eg.
    [table-cell id=5 class=”cellstyle1″ cell=C3 /]

    Kind regards
    Jason

    http://ww.wp.xz.cn/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Jason,

    thanks for your question!

    The Single Cell Shortcode only retrieves the content of the cell and prints that, without any element around it that could get a CSS class.
    Thus, the <span> method (either in the table cell or wrapped around the Shortcode) is the only thing possible here. You could give the CSS class to that <span> of course, to not have to use inline styles.

    Regards,
    Tobias

    Thread Starter jsem1101

    (@jsem1101)

    No problem. That’s fine, just wanted to make sure I wasn’t adding spans without need.

    Thanks for quick response!

    Jason

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Styling When Using "Single Cell Content Shortcode"’ is closed to new replies.