Remove "Product Description" header text in tabs
Q: How I can remove “Product Description” header text from appearing at all in tabs?
A: You can change or remove this by using the ‘filters’ in the code OR completely over-riding our function for this.
1) Place the following code in your theme’s functions.php file.
function mytheme_remove_product_description_heading( $current_desc ) {
return '';
}
add_filter( 'jigoshop_product_description_heading', 'mytheme_remove_product_description_heading' );
This function is given the initial ‘Product Description’ that you want to change. You could return something else, or as in this case we return nothing. There will still be a space there though where this should be as this text is wrapped in an HTML H2 tag.
2) Another way would be to over-ride our function that outputs this tabs panel. Instead, you could place this function also in your theme’s functions.php.
function jigoshop_product_description_panel() {
echo '<div class="panel" id="tab-description">';
echo '<h2>' . apply_filters('jigoshop_product_description_heading', __('Product Description', 'jigoshop')) . '</h2>';
// the following 3 lines replicate the behavior of 'the_content()'
// non echoed so Rich Snippets can be applied via a filter
$content = get_the_content();
$content = apply_filters( 'the_content', $content );
$content = str_replace( ']]>', ']]>', $content );
echo apply_filters( 'jigoshop_single_product_content', $content );
echo '</div>';
}
… and then cut out the 3rd line of code as this is what outputs the thing you want to remove along with the HTML H2 tag.
-
Getting Started
-
Jigoshop Settings
-
Creating Products
-
Using Jigoshop
-
Customize Jigoshop
-
Testings – in case of problems on Jigoshop web site
-
FAQ – Jigoshop plugin user questions
- Add a new tab to a product page / Custom tabs on product pages?
- Adding a Continue Shopping button to the single product page
- Adding Product Category Terms in a dropdown box for Custom Post Meta
- Add Alternate text on product picture and title
- Adding buttons / info to the end of each product
- View all (171 more)
-
FAQ – Jigoshop extensions user questions
-
API
-
Screencasts