Google SEO Title & Meta Different

#25222
  • Resolved Dino Behler
    Rank Math free

    After upgrading Rank Math, I noticed that my SEO descriptions on Google are changing. Currently I have the following formula setup for my WooCommerce products:

    %wc_shortdesc% %sep% %wc_sku% %sep% %customterm(product_tag)%

    Google is only displaying the %wc_shortdesc% portion of it. It used to display all of it. When I look on the backend at the product page under the Rank Math mockup, it shows up correctly. However, only one term from the %customterm(product_tag)% displays. It used to display as many as possible and then it would … if it couldn’t fit anymore.

    I have attached screenshots so you can see what I am talking about.

    • This topic was modified 4 years, 9 months ago by Dino Behler.
Viewing 15 replies - 1 through 15 (of 18 total)
  • Todd
    Rank Math free

    Hi Dino,

    Thanks a lot for your query and we are so sorry about the trouble this must have caused.

    Please note that this is the order which we use to generate SEO description for the product
    1. Custom SEO description
    2. Product Short Description
    3. Global Meta description template

    A your products have Product Short Description, they are not using Global Meta Template

    Here is the filter which you can add in your theme’s function.php file which will override the Product Short Description

    
    /**
     * Use the Description from Global Setting, if the description is missing in the Post metabox
     */
    add_action( 'rank_math/frontend/description', function( $generated ) {
        global $post;
        if ( 'product' !== $post->post_type ) {
            return $generated;
        }
        $desc = RankMath\Helper::get_settings( "titles.pt_{$post->post_type}_description" );
        $desc = RankMath\Helper::replace_vars( $desc, $post );
        return empty( $desc ) ? $generated : $desc;
    });
    

    Also, please use %tags% if you wish to show all product tags in the meta description.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    /**
    * Use the Description from Global Setting, if the description is missing in the Post metabox
    */

    What if I want to use the Global template regardless of whether there is a description or not? I want it to always use %wc_shortdesc% %sep% %wc_sku% %sep% %tags% regardless of whether there is a product description or a product short description. Is this possible?

    When I used the snippet you provided above, it pulled the product description on Google now rather than the product short description. Look at the following screenshot: https://prnt.sc/qhttce

    It should be

    Product Short Description | SKU | Tags

    Hello,

    Thank you for contacting Rank Math today.

    The code snippet provided by my colleague will precisely achieve what you are after. Please note that it will take sometime for the new meta description to appear on the SERP. You can however check the changes by inspecting the page source using CTRL + U on the page and looking for the meta description tag.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi Michael,

    So I just did a test run of the code snippet. I added a new product jus a few hours ago with the new code snippet activated. I then put the new product link through the Google Search Console and within an hour the new product was indexed. However, the description that Google pulled does not follow the formula listed above. It is now pulling the content from the description field of the new product rather than pulling

    Product Short Description | SKU | Tags

    Here is a link of the screenshot I captured from Google. This product was added today and Google indexed it today with the code snippet above activated. I still don’t think the snippet is working the way it should. We really didn’t have problems with this until I updated the plugin. Everything used to follow that formula. I don’t know why it switched all of a sudden. No settings were touched.

    https://prnt.sc/qhzfww

    Todd
    Rank Math free

    Hi Dino,

    I am afraid something’s not correctly setup. I am seeing just this as your product description:
    null

    Can you please share your WP logins in the sensitive data section so we can take a closer look?

    We look forward to helping you

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Todd
    Rank Math free

    Hi Dino,

    I have shared this with the dev. team.

    We will get back to you when we have an update.

    Thank you.

    Okay thanks for the help so far! I appreciate it.

    Todd
    Rank Math free

    Hi Dino,

    Appreciate that.

    Thank you.

    Any update on this? It’s starting to impact our search rankings.

    Hello,

    Thank you for contacting Rank Math today and sorry for the delay.

    I am checking the status of this problem from our dev team and we will be getting back to you in a short while.

    Your website does not also seem to be loading, could you please check this from your host?

    Looking forward to helping you. Thank you.

    ​​​​​​

    Thanks! It’s loading on our end. We have been getting orders today too so I don’t think it’s been down.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Todd
    Rank Math free

    Hi Dino,

    We are just about to release an update. It is going to fix the issue you are facing.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 15 replies - 1 through 15 (of 18 total)

The ticket ‘Google SEO Title & Meta Different’ is closed to new replies.