Default OpenGraph / share image doesn’t work???

#113536
  • Resolved Proxy
    Rank Math free

    I set a default share image, but it doesn’t show on any app including Facebook, Linkedin, and Slack.
    Am I missing an additional setting?

    See Screenshots: https://imgur.com/a/W590az9

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you so much for getting in touch.

    The default social sharing image shows up only when:
    1. You have not uploaded any featured image to a post
    2. You are not using even a single image inside the post
    3. You have not used any image in the social tab:

    If any of these are true, then that image will be used instead of the default social image. If you wish to force the use of default social image, please paste this code in your theme’s functions.php file:

    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.

    Proxy
    Rank Math free

    Thanks for the reply. I’ll use this code for now, but may I suggest making this a standard option in the future? My pages do not have featured images set, so the plugin is clearly using the first available image. Using random images by default as social media featured images will often display blurry icons, and other small unimportant images. You also lose the opportunity to have text on the image for advertising purpose (why we share on social media.)

    Lastly, I design for others. I’m almost certain my clients won’t be designing and adding featured images to their new pages.

    Michael Davis
    Rank Math pro

    Hello,

    Glad that helped.

    I’ll forward your suggestion to our dev tem.

    Do you wish to close this thread?

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

    Proxy
    Rank Math free

    Thanks so much! Mark this case solved!

    Michael Davis
    Rank Math pro

    Hello,

    Glad to hear this.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

The ticket ‘Default OpenGraph / share image doesn’t work???’ is closed to new replies.