Blog2Social – RankMath overwrites the social settings

#54402
  • Resolved Cathie Heart
    Rank Math free

    Hello,

    I use Blog2Social so that the images and wording are set specifically for each social network I publish to. I recently switched to using RankMath from All In One SEO and I love it so much more.

    I have one problem. How do I stop RankMath from overwriting what Blog2Social does for my social media posting? I upload a featured image which is for the blog to look correct but I post different images to different networks optimised for each one, for example, Instagram and a blog post image for pinterest.

    Can you help me get that working again please, so that RankMath doesn’t override what Blog2Social is set to post especially for images?

    Thanks
    Cathie.

Viewing 1 replies (of 1 total)
  • Alberto
    Rank Math business

    Hello,

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

    Since you already have a plugin you want to use to display the Facebook, Twitter and other social networks data, you should disable that feature from Rank Math.

    To do it, you should add the following code at the end of the functions.php in your current theme:

    /**
     * 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' );
    });

    This will remove in the frontend, the OpenGraph data added by Rank Math.

    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 ‘Blog2Social – RankMath overwrites the social settings’ is closed to new replies.