Turn off Open Graph

#21261
  • Resolved Md
    Rank Math free

    Hi,

    There was an option to turn off open graph tags in Rank Math. After the update I can’t seem to find it anymore. I need to turn them off because I’m using a social plugin that produces open graph tags as well so I don’t want two tags.

    Maybe I’m just not looking properly. It was somewhere under the Rank math settings and I turned it off. Can you refresh my memory as to where it is again.

    Thanks!

    • This topic was modified 4 years, 5 months ago by Md.
Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

    ​​​​​​

    Md
    Rank Math free

    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.

    Md
    Rank Math free

    Hello,

    I answered privately.

    Thanks!

    Md
    Rank Math free

    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.

Viewing 8 replies - 1 through 8 (of 8 total)

The ticket ‘Turn off Open Graph’ is closed to new replies.