As you’ll know we love the Jigoshop WordPress E-Commerce plugin, but when recently using it for a client we couldn’t find a way to remove the Product Description Tab completely. This dispite the Jigoshop function here: –
http://forum.jigoshop.com/kb/faq/remove-product-description-header-text-in-tabs
Our response uses pure CSS and will work in modern browsers. Simply add the following to your style sheet:-
/* Hide the tabs and panels */ #page div.product #tabs ul.tabs li:first-child { display: none; } #page div.product #tabs .panel:first-child { display: none; } #tab-description[style] { display: none!important; } #tab-attributes { display: block!important; } /* Make the new first tab background white */ #page div.product #tabs .panel:nth-child(2) { background: #ffffff; }
Let us know how you get on!
UPDATE: Do it as a function
Jigoshop have updated the code and it now works 100%:-
// Remove product description tab remove_action( 'jigoshop_product_tabs', 'jigoshop_product_description_tab', 10 ); remove_action( 'jigoshop_product_tab_panels', 'jigoshop_product_description_panel', 10 );
So you can replace our CSS fix with this code that is added directly into your theme’s functions.php file.