Need to remove Rank Math SEO from template pages

#916304
  • Resolved JJ Web SEO
    Rank Math free

    Hello Team,

    My website https://realtuff.com/ has some templated pages which are globally recognized in the website.

    I do not need to edit them because if I edit, it might get changed SEO data to other pages.

    Can you please help me how to remove Rank Math SEO plugin from the template pages only?

    Thanks!

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    Could you please share some examples of the template page you’re referring to so we can check?

    Meanwhile, if you want to completely remove/disable Rank Math on a post type (template posts), you can use and customize this filter:

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

    If you’re unsure how to add this code, you can follow this guide:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Looking forward to helping you.

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

The ticket ‘Need to remove Rank Math SEO from template pages’ is closed to new replies.