Jigoshop completely remove Product Description Tab

Glenn Blog, Glenn's Blog 0 Comments

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:-

[css]

/* 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;
}

[/css]

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.

About the Author
Jigoshop completely remove Product Description Tab Jigoshop completely remove Product Description Tab 0da77002febbfe28d15144a57bbcc2c9 s 180 d mm r g

Glenn

A highly experienced WordPress Web Developer, Front-end and Back-end Developer & New Media Specialist with extensive knowledge of a wide spectrum of technologies in the Development and Creative Industries built up over a number of years.

Leave a Reply

Your email address will not be published. Required fields are marked *