disable title/meta for perticular pages

#243121
  • Resolved Pushpendra Singh
    Rank Math free

    Hi,

    Is it possible to disable Rankmath title/meta feature for a particular page or post. My page currency rate plugin generate dynamic titles and Rankmath is creating issue with it.

    Please suggest a solution.

Viewing 1 replies (of 1 total)
  • Hello,

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

    Unfortunately, that feature is not available in Rank Math options.

    However, you can use and modify this filter to disable the meta tags for a specific post generated by Rank Math:

    add_action( 'wp_head', function(){
    global $post;
    if( $post->ID == 558){
    remove_action( 'rank_math/head', '_wp_render_title_tag', 1 );
    	remove_all_actions( 'rank_math/opengraph/facebook' );
    	    remove_all_actions( 'rank_math/opengraph/twitter' );
    }}, 1 );
    add_filter( 'rank_math/frontend/description','__return_false');

    Please modify the 558 with the actual post’s ID value.

    And here’s a link on how to apply a filter on your site:
    https://rankmath.com/kb/filters-hooks-api-developer/#how-to-add-code-snippets-to-rank-math-php

    I hope that helps.

    Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    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 ‘disable title/meta for perticular pages’ is closed to new replies.