Problem with Surecart and Rankmath Meta Description

#964847
  • Resolved Fabio Guarino
    Rank Math free

    I’ve seen that Surecart creates products on its own cloud, but in any case, both surecart and rankmath give fields in <head> of the products giving 2 SEO Title and 2 meta descriptions. That’s why, I’m reaching out to know if there is a way to hide/disable rankmath just on Surecart products(collections) as it cannot give right information about them, and so to avoid that search engines find 2 meta descriptions.

    I was trying to leave the fields in the “titles and meta” settings but even if I leave them empty, as soon as I save the settings, the page reloads and the old variables get back. So if you have any way to set them null or disable them in some way on some pages/categories, please let me knwo.

    Thank you very much and wait for your answer.

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

    We apologize for the issue you are facing with Surecart and Rank Math regarding the duplicate SEO titles and meta descriptions. Thank you for raising this concern.

    To prevent Rank Math from generating meta descriptions for Surecart products, you can use the following approach:

    1. Use the Robots Meta Settings: You can set the Robots Meta for the specific product pages or categories to noindex or nofollow. This will prevent search engines from indexing those pages, which can help mitigate the issue of duplicate content.

      • Go to the Rank Math settings for the specific product or category.
      • Look for the Robots Meta settings and choose the appropriate options.
    2. Custom Code: If you are comfortable with adding custom code, you can use a filter to disable Rank Math’s output on specific pages. Here’s a sample code snippet that you can add to your theme’s functions.php file:

      add_filter('rank_math/frontend/robots', function($robots) {
         if (is_product() && /* condition to check if it's a Surecart product */) {
             return 'noindex, nofollow';
         }
         return $robots;
      });

      Make sure to replace the condition with the appropriate check for Surecart products.

    3. Page Rules in Cloudflare: If you are using Cloudflare, ensure that you have set up page rules to whitelist Rank Math files as mentioned in our documentation. This can sometimes help with saving settings properly.

    Unfortunately, if leaving the fields empty does not work, it may be a limitation within the plugin itself. In such cases, we recommend reaching out to a developer who can assist with custom solutions or further troubleshooting.

    If you need more detailed assistance or if these solutions do not resolve your issue, please reply to this ticket, and a human agent from our support team will take over and provide further help.

    Thank you for your understanding!

    Sources:
    Why Your SEO Title, Description & Focus Keyword Aren’t Being Saved » Rank Math

    I’ve seen that Surecart creates products on its own cloud, but in any case, both surecart and rankmath give fields in <head> of the products giving 2 SEO Title and 2 meta descriptions. That’s why, I’m reaching out to know if there is a way to hide/disable rankmath just on Surecart products(collections) as it cannot give right information about them, and so to avoid that search engines find 2 meta descriptions.

    I was trying to leave the fields in the “titles and meta” settings but even if I leave them empty, as soon as I save the settings, the page reloads and the old variables get back. So if you have any way to set them null or disable them in some way on some pages/categories, please let me knwo.

    However, I do not want to set it in noindex, because these are products I want to sell. So I just want to leave the surecart one, even if I can’t optimize really at its best, but at least I can set real data.

    Thank you very much and wait for your answer.

    Hello,

    You can use and customize these filters to disable Rank Math’s meta title and description from those pages:

    add_filter( 'rank_math/frontend/description','__return_false');
    add_filter( 'rank_math/frontend/title', function( $title ) {
    	return false;
    });

    And here’s a guide to adding the code to the website:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how this goes.

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

The ticket ‘Problem with Surecart and Rankmath Meta Description’ is closed to new replies.