Site logo

Archived topic

Page layout

3 replies · Started by Joanne on April 28, 2022

Viewing posts 1–4 of 4

Not sure if this is specific to Generatepress, or if it's a Woocommerce thing.

I'm using the standard Generatepress theme, along with Woocommerce.

On each product page, it's showing 2 tabs. Under the description tab it also has "DESCRIPTION" written underneath. How can I get rid of that extra text, as circled in image below? And also, how do I create extra tabs where I can add further info?

layout

Thanks

Hi there,

its all a Woocommerce thing, we leave their templates alone - but we can try and help:

1. To remove the H2 Description title add this PHP Snippet:

add_filter( 'woocommerce_product_description_heading', '__return_null' );

2. Adding Tabs in Woocommerce is more complicated - this doc they provide shows you an example of how to add them:

https://woocommerce.com/document/editing-product-data-tabs/#section-5

Question here is - what content are you wanting to add to the tab? Is it Static content ( same for all products ) or Dynamic ? As thats where it can get more complicated. Let me know.

THIS DOC explains adding PHP: https://docs.generatepress.com/article/adding-php/

Thanks for the quick reply :)

Can I just ask where I'd add the PHP snippet mentioned in "1"?

Many thanks

This doc explains:

https://docs.generatepress.com/article/adding-php/

TLDR:
If you're using a Child Theme then it can be added to the Child Themes functions.php
If you're not using a Child Theme then install the Code Snippets plugin ( link in doc ) and add it to a new snippet.

This archived topic is closed to new replies.