OG image not working

#93630
  • Resolved Muntasir Aonik
    Rank Math free

    Hello there, Whenever I tried to share any link to Facebook, it shows the site logo not the og: image. While I was checking on the Facebook debugger I saw the Og image is showing. So, I got curious and check the source code, i saw og image are outside of head tag. Please help me to solve the issue.

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

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

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Please let us know if you find the culprit.

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Looking forward to helping you.

    I have checked the plugins there is no conflict between them. However, I think it’s a theme problem. Can you please guide me where I can get the error on the theme file?

    Fixed the issue. Just replace the position of <?php wp_head(); ?> inside </head> tag. And now it’s working.

    Sajid Khan
    Rank Math business

    Hello,

    We are super happy that you resolved your issue. Do you have any other questions? Or do you want us to close this thread? In any case, we will be here if you have any other questions or issues in the future.

    Thank you.

    Issue Solved.

    Sajid Khan
    Rank Math business

    Hello,

    Thank you for your reply.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘OG image not working’ is closed to new replies.