• Resolved crowesnest

    (@crowesnest)


    I want to insert a tablepress table into a woocommerce email which I can do using the do_shortcode function. However, when I do this I lose all of the css styling for the table. Is there a way to keep the table styling when it is inserted into the email?

    • This topic was modified 6 years, 11 months ago by crowesnest.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter crowesnest

    (@crowesnest)

    I done some additional checking and found that when I place a tablepress table into the description field of a woocommerce product, the table styling come through. It just doesn’t work in the woocommerce emails.

    • This reply was modified 6 years, 11 months ago by crowesnest.
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this most likely is that HTML emails don’t support external CSS styling, from all that I know.

    Regards,
    Tobias

    Thread Starter crowesnest

    (@crowesnest)

    When I look at the email I see
    td class=”column-1″ style=”padding: 12px;” for each row of the tablepress table.

    Is this coming from the theme or template or does this come from the tablepress table styling?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    to be honest, I don’t know. TablePress doesn’t add this natively, so that I can only assume that something else is adding it.

    Regards,
    Tobias

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Using do_shortcode loses css styling’ is closed to new replies.