Change breadcrumb title to

Home Forums eStore Free Change breadcrumb title to

This topic contains 9 replies, has 4 voices, and was last updated by  Nima 23 hours, 15 minutes ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1324824

    is
    Participant

    There’s something you do on your eStore free (probably others too) theme that’s considered bad practice for SEO. You have two <h1> tag.

    So on product pages, one <h1> tag is the product title, and another <h1> tag is the “Shop” title from the breadcrumbs. A solution would be to set up a rule where if it’s a product page, then change the breadcrumbs title from <h1> to whatever with the same CSS class from before.

    #1324939

    ashishsthanp
    Moderator

    @is

    Thanks for the concern. Since we’ve to do some research on this topic, it may take time to provide you solution.
    So, this issue will be fixed in our next update or later.

    Please have patience until then.

    Regards.

    #1324977

    is
    Participant

    That may take a while though. Can you provide a temporary solution that I can implement now? Don’t know how complicated it actually is, but a rule like I mentioned where if it’s a product page, then change the breadcrumbs title from <h1> to <p> while keeping the same css class should be pretty easy.

    Pseudo code:

    if (page = product.page)
    then (update <h1> to <p>)

    #1324996

    is
    Participant

    Ok, I fixed it.

    In file:
    single-product.php
    (woocommerce/single-product.php)

    You should update the commented line below.

    <div class="page-header clearfix">
    		<div class="tg-container">
    			<?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
    
    		<!--change from <h1> to <p> -->		<p class="entry-title"><?php woocommerce_page_title(); ?></p>
    
    			<?php endif; ?>
    			<h3 class="entry-sub-title"><?php woocommerce_breadcrumb(); ?></h3>
    		</div>
    </div>

    Can you review it please? Tried it on my website and it works fine. It’s a pretty simple and easy fix.

    Now how do I implement this in my child theme?

    • This reply was modified 1 week ago by  is.
    #1325230

    ashishsthanp
    Moderator

    @is

    Since woocommerce_page_title() generates page title, it is better to use heading tag like h2 instead of p tag.

    Thanks.

    #1325282

    is
    Participant

    Sure, whatever, I’ll add <h2>, but how do I actually implement this via a child theme? Or maybe if you update the theme and implement it yourself I won’t have to do it. 🙂

    #1325291

    davinchicode1993
    Participant

    I really like your blog. I really appreciate the good quality content you are posting here for free. science project ideas for kids

    #1325443

    Nima
    Moderator

    Hi @is,

    Yes, it would be better to implement this changes on your child theme for now.
    As it may take some time to add these things in theme and don’t have any ETA for new update.

    Regards!
    ThemeGrill Support Team

    #1325934

    is
    Participant

    Ok. How do I implement them via a child theme?

    #1325970

    Nima
    Moderator

    Hi @is,

    Firstly, you can follow the link below where you can download the child theme for estore and then please create the folder woocommerce as in the main theme. And clone the file “single-product.php” where you can overwrite the above provided code.

    Tutorial on Creating WordPress Child Theme

    Regards!
    ThemeGrill Support Team

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

You must be logged in to reply to this topic.