Error in Google Search Results cause on wrong Meta Description on all sites

  • Resolved Unbentmedia

    Hello dear team from super Rank Math Plugin,

    As already discussed with Bhanu I have a small problem with the Meta Descriptions. Since I use Rank Math all descriptions are automatically filled with html code instead of the descriptions or the text beginnings. So it looks like this in Google (I changed this page manually, but it applies to all other pages):

    home – Welacom – Kommunikation die verbindet
    tatsu_section bg_color= “rgba(48,48,48,1)” bg_image=”
    bg_repeat= …

    I can change it manually but Bhanu said because of the shortcode.
    Would be very nice if you can have a look on this ­čśë

    ThanX and s second thanX for the fantastic Rank Math Tool.

    best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Rank Math plugin auto-generates the description from the content if it’s not added in the description field. Kommunikation die verbindet, this particular page on your site has a broken shortcode in the description which is causing the problem. If this issue is only on 1 page, then I would suggest you to manually add the description in the Description field. If other pages are also affected, then please add below code in your theme’s functions.php file:

    add_filter( 'rank_math/frontend/description', function( $description ) {
        return strip_shortcodes( $description );

    Hope that helps. Thank you.

    • This reply was modified 3 years ago by Pratik.

    @pratik-d should’t this be done by default?

    ThanX! Yes, all sites are affected.
    and well, we do not have a child theme installed. Thats the only way?

    Hello @bastian-fiessinger

    Thanks for the question.

    Rank Math will automatically execute any shortcode that exist on the excerpt when generating the meta description but I believe that Pratik’s code will act as a fail safe when the shortcodes have some errors or when they do not execute.

    a can suggest that you create a child theme with the help of your theme author and add this code to prevent the changes from being overwritten on the next theme update.

    I hope this info helps. Thank you.


    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 4 replies - 1 through 4 (of 4 total)

The ticket ‘Error in Google Search Results cause on wrong Meta Description on all sites’ is closed to new replies.