Hello,
Thank you for contacting Rank Math today.
This setting is not available from the plugin UI but you can add the following code to your theme’s functions.php file to remove the tags on your pages:
/**
* 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.
Hi,
Thanks for letting me know. Why did they remove it? It was so helpful to just switch it off under the settings and now I have to add this code to the functions.php. Did they just forget to include it in the update? Because it was there before and now it’s gone.
All my themes use a child theme. So I guess I have to add the parent’s functions.php to the child theme in order for it to stay? Could you please ask Bhanu if he could just put this feature back?
Thanks!
HI there,
Thanks for the follow up.
Yes you have to copy the function.php file to the child theme.
I will pass on the feature request to Bhanu.
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
Thank you for contacting Rank Math today.
I cannot find any data on the sensitive data section. Could you please copy the info once again?
Looking forward to helping you. Thank you.
Hi, I see that the turn on and off option for open graph is not available. Just to confirm, does that mean that the open graph settings are turned on by default?
Hello,
Yes, they are turned off by default.
We glad to be of help and happy that the issue is resolved.
If you need further help or with anything else, please open a new support ticket here so we can help
We are always here for assistance.