Home Forums WoodMart support forum Modify the H1 title of the product category page

Modify the H1 title of the product category page

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #561648

    woogobuy
    Participant

    I want to add a first-level category name to the H1 title of the shop archive. (Image: shop1.png)
    Want to add it through code.

    I found this: “wp-content/themes/woodmart/themes/woodmart/inc/modules/layouts/elementor/shop-archive/class-woocommerce-title.php” (Image: shop2.png)

    And created a new one in the child theme: “wp-content/themes/woodmart-child/themes/woodmart/inc/modules/layouts/elementor/shop-archive/class-woocommerce-title.php”.

    But it doesn’t work.
    What is the correct solution? Should I overwrite “class-woocommerce-title.php” or rewrite “woocommerce_page_title()”?

    Attachments:
    You must be logged in to view attached files.
    #561878

    Luke Nielsen
    Keymaster

    Hello,

    Navigate to Layouts -> Product archive -> edit this layout – https://prnt.sc/OG92hEbVusjz, then change the tag in the page builder – https://prnt.sc/R5haF3UVEGDq

    Kind Regards

    #563309

    woogobuy
    Participant

    Thanks Reply. I know what to change, I mean, I want to customize the H1 title.

    #563454

    Luke Nielsen
    Keymaster

    Hello,

    The Layout pages cannot be overridden via the child theme. Please clarify how exactly you want to customize the title.

    Thank you for your time.

    Kind Regards

    #563652

    woogobuy
    Participant

    I want the H1 title content of this piece to be equal to the slug of the page, or equal to the keywords defined by the Rank Math SEO plug-in.
    Where can this be achieved by modifying the code?

    #563891

    Luke Nielsen
    Keymaster

    Hello,

    Sorry, but this https://prnt.sc/2ivKa3232RXy title cannot be customized because it is developed via classes that cannot be overridden via a child theme, unfortunately. I suggest you disable the Layouts and then make such custom changes for the default titles from WooCommerce.

    Kind Regards

    #563957

    woogobuy
    Participant

    OK, thanks

    #563986

    Luke Nielsen
    Keymaster

    Hello,

    Always remember that you can reach out to us with any questions you may have.

    Have a good day!

    Kind Regards

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Modify the H1 title of the product category page’ is closed to new replies.