Deactivate METAS

#753574
  • Dear support,
    I’m using RankMath for different reasons but as to Metas management, another plugin is currently doing it. I have however notice that for product categories RankMath takes control over the other plugin as it’s the rankmath metas that appear when opening product category pages and I don’t know how to stop this from happening; can you please advice?

    Many thanks

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

    I’m sorry to hear about the issue you’re facing with managing meta tags using Rank Math. It seems like Rank Math is taking control over the meta tags for product categories, even though another plugin is managing them.

    To resolve this, you can disable all the SEO tags generated by Rank Math by following these steps:

    1. Navigate to WordPress DashboardAppearance → Theme File Editor.
    2. Add the following code snippet to your theme’s functions.php or 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 );
    1. Click the Update File button to save the changes.

    This code will remove the SEO tags generated by Rank Math on all pages, including product category pages.

    If you encounter any difficulties or need further assistance, please feel free to reply here, and a human agent from the Rank Math Support team will assist you promptly.

    Thank you for bringing this to our attention.

    Sources:
    How to Disable All Rank Math Generated SEO Tags » Rank Math
    How to Fix Duplicate Meta Tags » Rank Math
    How to Completely Uninstall Rank Math From Your Website » Rank Math
    Migrating from Yoast SEO to Rank Math SEO » Rank Math
    Rank Math Plugin Requirements for WordPress Websites

    Many thanks for your reply; i added that string to the end of the functions.php file but rank math metas still appear; did i do it wrong?

    Hello,

    Apologies for the inconvenience.

    The filter shared by our bot only applies to single pages on your site, that’s why your product categories still contain Rank Math meta tags.

    Please replace the code to this one instead to apply it to your product categories

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

    Hope that helps.

    Hello there,
    this code has indeed worked, but the other plugin doesn’t take it over, i’m checking with them why this happening; many thanks for your help!

    Hello,
    
    You’re welcome.

    We are super happy that this issue is already resolved. If you have any other questions in the future, know that we are here to help you.
    
    If it isn’t too much to ask for – would you mind leaving us a review here?
    https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post
    https://www.trustpilot.com/evaluate/www.rankmath.com

    It only takes a few minutes but makes a huge difference.

    It would mean so much to us and would go a really long way.

    Thank you.

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

The ticket ‘Deactivate METAS’ is closed to new replies.