Rankmath plugin producing duplicate title and description

#855455
  • Resolved Em
    Rank Math free

    Hi there,
    I’ve been using your plugin since the creation of my site and from search engines I get notifications that there’s duplicate title and description whereby even for single articles, the same title and description is getting repeated in all, which is the site title and description instead of the article title and its excerpt.

    I’ve manually customized the header.php file to solve this, but your plugin is injecting the site title and description in all pages. I’ve tried to disable the title tags from rank math by creating a command file in the site database but this doesn’t seem to solve the issue. Please note that I just want to disable the title tags and description so that search engines can use my customized version rather than the automated rankmath title tags.

    What’s causing this and how do I disable this without affecting other setting like sitemaps, etc, just the title tags being disabled?

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

    We apologize for the issue you are facing with duplicate titles and descriptions being generated by the Rank Math plugin. It sounds like you’ve already taken some steps to resolve this, but we understand that it can be frustrating when the plugin continues to inject the site title and description across all pages.

    To disable all Rank Math generated SEO tags, including the title tags and descriptions, you can follow these steps:

    1. Navigate to WordPress DashboardAppearance → Theme File Editor.
      Navigate to Theme File Editor from Appearances

    2. Add the following code snippet to your theme’s rank-math.php file:

      /**
      * Function to disable SEO Tags generated by Rank Math
      */
      function rankmath_disable_features() {
         if ( is_singular( 'page' ) ) {
             remove_all_actions( 'rank_math/head' );
         }
      }
      add_action( 'wp_head', 'rankmath_disable_features', 1 );

      add code

    3. Once you’ve added the code, click the Update File button to save the changes. This code will remove the SEO tags generated by Rank Math on all pages.

    Please note that this will disable all SEO tags generated by Rank Math, so ensure that you have other SEO settings configured as needed, such as sitemaps, which will not be affected by this change.

    If you still encounter issues or have further questions, please feel free to reply to this ticket, and a human agent from the Rank Math Support team will assist you further. Thank you for raising this concern!

    Sources:
    How to Disable All Rank Math Generated SEO Tags » Rank Math

    Em
    Rank Math free

    I’ve removed the custom tags instead and reset the rank math plugin as the sole seo tool.

    Hello,

    It seems that you have already marked this ticket as already resolved. Could you please confirm?

    Meanwhile, here’s a filter you can use to remove the title and description only from Rank Math:

    add_filter( 'rank_math/frontend/description','__return_false');
    add_filter( 'rank_math/frontend/title','__return_false');

    Looking forward to helping you.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this ticket.