OpenGraph image is not displayed in the page’s source

#956003
  • Julien J
    Rank Math free

    Hello,

    If I have defined an image in an article, og:image appears in the page source code.

    If I don’t have an image in my article, the tag og:image doesn’t appear in the page’s source code, whereas I do have an image by default in the admin Titles and meta > Global metadatas > OpenGraph thumbnail.

    Is this normal?

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

    We apologize for the issue you are facing with the Open Graph image not displaying correctly. It is expected behavior that if you have defined an image in your article, the og:image tag will appear in the page source. However, if you do not have an image in your article, the og:image tag should still appear if you have set a default Open Graph thumbnail in the Rank Math settings.

    If the og:image tag is not appearing when there is no image in the article, it could indicate that Rank Math is not able to print your social tags correctly. Here are a few steps you can take to troubleshoot this issue:

    1. Check if Rank Math is Enabled: Ensure that the Rank Math plugin is active on your site.
    2. Check for Plugin or Theme Conflicts: Sometimes, other plugins or themes can conflict with Rank Math. You can follow our troubleshooting guide to identify any possible conflicts.
    3. Inspect Page Source: Right-click on your page and select View Page Source to check if the og:image tag is present. If it is missing, it indicates an issue with how Rank Math is configured or functioning.
    4. Default Open Graph Image: Make sure that you have correctly set the default Open Graph image at WordPress Dashboard → Rank Math → Titles & Meta → Global → OpenGraph Thumbnail.

    If you have followed these steps and the issue persists, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further. Thank you for raising this concern!

    Sources:
    Open Graph/Social Preview Image Is Not Displayed » Rank Math

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    Please follow this guide to help you with your issue: https://rankmath.com/kb/open-graph-image-not-displaying/

    If the issue persists, do let us know and we’ll assist you further.

    Looking forward to helping you.

    Julien J
    Rank Math free

    Hello Jeremy,

    Thank you for your reply.

    Unfortunately I’ve already followed the advice on this page and the tag og:image doesn’t appear in the html code of the page, even though I’ve defined an image by default.

    Hello,

    Could you please share the image URL you have uploaded in Rank Math > Titles & Meta so we can check?

    We have asked since the image you’re using should be as close as 1200 x 630 pixels, and the image file format you are using is only between jpeg, gif, or png as per Opengraph Standards:
    https://rankmath.com/kb/open-graph-image-not-displaying/#num-4-2-image-dimensions-image-format

    Looking forward to helping you.

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

You must be logged in to reply to this ticket.