Duplicated Open Graph Tags

#8642
Viewing 1 replies (of 1 total)
  • Hello,

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

    It is likely that you have another plugin that is generating OG tags on your site. I can suggest that you isolate the culprit by performing the steps described on the following page:

    Confirming a plugin conflict

    As an alternative, you can also disable OG tags in the plugin by adding the following filter 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' );
    });

    I hope this info helps. 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 ‘Duplicated Open Graph Tags’ is closed to new replies.