Delete Open Graph info

#40086
  • Resolved David
    Rank Math pro

    I looked at the html code for my page after installing RankMath (great plugin btw) and see that it’s displaying a “RankMath” section and IN that section is a lot of open graph stuff like og:description.

    I would like to “turn off” that information.

    Our current site’s actual meta description tag is fine, but somehow the og:description tag you’re showing has very old / dated information in it.

    How can we turn that off?

    Thanks

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    You can easily disable all the OpenGraph tags on the head section of your pages by adding the following code snippet on your theme’s functions.php file:

    /**
     * Hook to remove og:tags
     */
    add_action( 'rank_math/head', function() {
    	remove_all_actions( 'rank_math/opengraph/facebook' );
    	remove_all_actions( 'rank_math/opengraph/twitter' );
    });

    Looking forward to helping you. Thank 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 ‘Delete Open Graph info’ is closed to new replies.