unable to remove meta tags from home page

#937636
  • Resolved Fafene
    Rank Math free

    i want to remove meta tags from the home page of my web site i have selected schema type = none in setting
    schema type option img

    but still i am getting all meta tags in the home page
    meta tag img

    can you help me to remove them from plugin settings

Viewing 2 replies - 1 through 2 (of 2 total)
  • https://imgur.com/a/ZoTmgyN

    link for images

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    Can you please confirm if you want to remove all the Rank Math meta tags from your homepage? If so, you can use the following filter on your website:

    function rankmath_disable_features() {
    	if(is_front_page() || is_home()){
                remove_all_actions( 'rank_math/head' );
    	}
    }
    add_action( 'wp_head', 'rankmath_disable_features', 1 ); 
    

    In case, you only want to remove the schema markups, you can use this filter:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
        if ( is_front_page() || is_home() ) {
            return false;
        }		
    }, 99, 2);
    

    Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please don’t hesitate to let us know if you have any other questions.

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

The ticket ‘unable to remove meta tags from home page’ is closed to new replies.