Tagged: woocommerce
Hello!
I’m using the banner options for woocommerce product categories and am displaying the product cat description over the banner. The trouble is that the description is wrapped in a paragraph tag which is then wrapped in an H1 tag. I would like to change the H1 tags to div tags. I see the code I need to change around line 1179 in this file…/wp-content/themes/enfold/config-woocommerce/config.php
if($description) $output .= "<h1>".$description."</h1>";
However, I know that I can’t move a copy of config.php over to my child theme. Is there a hook that I can use to change that h1 tag to a div?
Thank you in advance!
Hey waxingmedia,
Thank you for the inquiry.
You might have to move the whole avia_woocommerce_parallax_banner function and all the associated hooks or functions in the child theme’s functions.php file. The following threads might help.
// https://kriesi.at/support/topic/woocommerce-category-description-displayed-in-title-header/#post-1298715
// https://kriesi.at/support/topic/product-category-pages-full-width-page-banner-and-description-updated/#post-877483
Best regards,
Ismael