Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1306251

    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!

    • This topic was modified 3 years, 6 months ago by waxingmedia. Reason: forgot to complete topic title
    #1306671

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.