Home Forums WoodMart support forum Product Category Page H3 Headings

Product Category Page H3 Headings

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

    Aleksey88
    Participant

    There are questions about SEO, on the category page, the entire list of products has an H3 html header, which is not very good. I tried to solve it as in the screenshot, but there is no such file.

    Perhaps there is a ready-made solution, how to remove h3 and make a span .

    https://xtemos.com/forums/topic/product-listing-convert-h3-to-span-or-different-html-element/

    #454671

    Artem Temos
    Keymaster

    Hello,

    Try to add the following PHP code snippet to the child theme functions.php file to change it

    	function woocommerce_template_loop_product_title() {
    		echo '<span class="wd-entities-title"><a href="' . get_the_permalink() . '">' . get_the_title() . '</a></span>';
    	}

    Kind Regards

    #454743

    Aleksey88
    Participant

    Everything is working. Thanks a lot! But there is a nuance, with the span tag.
    Now the names of the products look like links.

    Perhaps another tag is needed: p or div ?

    #454744

    Artem Temos
    Keymaster

    Hi,

    Could you please send us a link to your website where we can see this issue?

    Kind Regards

    #454746

    Aleksey88
    Participant

    Thank You

    #454753

    Artem Temos
    Keymaster

    Try to add the following code snippet to the Custom CSS area in Theme Settings to fix this issue.

    .wd-entities-title  a {
        color: inherit;
    }
    #454754

    Aleksey88
    Participant

    Perfect, thanks for the help! I wish you a good day!

    #454781

    Artem Temos
    Keymaster

    You are always welcome. Feel free to contact us if you have any further questions.

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

The topic ‘Product Category Page H3 Headings’ is closed to new replies.