Global Social Site Image Not Used

#84000
  • Resolved Patrick Hills
    Rank Math free

    Hey there–

    When I publish a post with an image in the content, but no featured image– the plugin isn’t specifying to use the global share image. Is there a setting somewhere that I can set to always use the global image if no featured image is set?

Viewing 5 replies - 1 through 5 (of 5 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.

    Please head over to the page social meta box and add a social image. Please note that without that, Rank Math is set up to use the featured image of a post as its open graph image. Only if there is no featured image, we use the fallback option set in Rank Math > Titles & Meta > Global > OpenGraph Thumbnail.

    Hope that helps

    Hey Alberto–

    That would be my expected behavior as well. However, currently it takes the first image of a post and uses that as the share image when there’s no featured image instead of the OpenGraph Thumbnail (which is set, and works otherwise).

    Hello,

    Since version 1.0.47.1 of Rank math, our dev team added more automation to the Open Graph Image tag(og:image) functionality. It can now pick the first external image from the content as well.

    You will need to add a featured image or a social sharing image to override this feature.

    Hope that helps. If you have any further question(s), please let us know. Thank you.

    Since version 1.0.47.1 of Rank math, our dev team added more automation to the Open Graph Image tag(og:image) functionality. It can now pick the first external image from the content as well.

    That’s… an extremely bad idea, and something that I would consider a breaking change if you don’t have an opt-out. I strongly urge the dev team to reconsider this without adding in an option to disable “more automation”. You’ve basically broken my site along with hundreds of pages of content.

    Hello,

    We are extremely sorry about that.

    You can use this filter in your theme’s functions.php file to force the use of default OpenGraph image instead of the first image in the content:

    add_filter('rank_math/opengraph/pre_set_content_image', function() {
    	return true;
    });

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    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 5 replies - 1 through 5 (of 5 total)

The ticket ‘Global Social Site Image Not Used’ is closed to new replies.