WordPress.org

Plugin Directory

WooCommerce Custom Product Tabs Lite

This plugin extends WooCommerce by allowing a custom product tab to be created with any content.

Can I add more than tab, or change the order of the tabs?

This free version does not have that functionality, but you can with the premium WooCommerce Tab Manager. This allows you to add multiple tabs, share tabs, edit core tabs, or re-order tab display.

How do I hide the tab heading?

The tab heading is shown before the tab content and is the same string as the tab title. An easy way to hide this is to add the following to the bottom of your theme's functions.php or wherever you keep custom code:

add_filter( 'woocommerce_custom_product_tabs_lite_heading', '__return_empty_string' );

My tab content isn't showing properly, how do I fix it?

Be sure that (1) your HTML is valid -- try putting your tab content into a blog post draft and see how it renders. (2) Be sure any shortcodes will expand in your blog post draft as well; if they don't work properly there, they won't work in your custom tab.

Can I set the same tab title for all products?

Yep, there's the woocommerce_custom_product_tabs_lite_title that passes in the tab title for you to change. This filter also passes in the $product and class instance if you'd like to change this conditionally.

Here's how you can set one title for all custom tabs, regardless of what title is entered on the product page (can go in the bottom of functions.php or where you keep custom code):

function sv_change_custom_tab_title( $title ) {
 $title = 'Global tab title';
 return $title;
}
add_filter( 'woocommerce_custom_product_tabs_lite_title', 'sv_change_custom_tab_title' );

Requires: 4.1 or higher
Compatible up to: 4.5.3
Last Updated: 2 months ago
Active Installs: 10,000+

Ratings

4.5 out of 5 stars

Support

3 of 4 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

0,1,0 100,1,1
100,1,1
100,1,1
100,1,1
0,1,0
100,2,2
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1