Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

The [columns] shortcode in custom product tab adds empty above and below

Home / Forums / Virtue Theme / The [columns] shortcode in custom product tab adds empty above and below

This topic is: Not a support question
[Not a support question]
Posted in: Virtue Theme
April 12, 2021 at 11:37 pm

Hi,

we have custom tabs with the following content (minimal example):

<h2>My headline</h2>
[columns] [span6]
Left part
[/span6][span6]
Right part
[/span6][/columns]

When this gets rendered above and below the part with [columns]...[/columns] an empty p paragraph is added. This only happens in the custom tabs, but for instance not when adding the same in the product description, that is, for the product description tab.

I have no idea why, but maybe the php code for custom tab is missing a trim() or similar.

Maybe this is a bug that needs to be fixed in Virtue Premium. Or do you know of a workaround how I could write the above code but in a way that the extra paragraphs are not added?

  • The forum ‘Virtue Theme’ is closed to new topics and replies.