Twitter image not showing

#266514
  • Resolved Abdelaziz
    Rank Math free

    Hi great support,

    Hope you’re doing well.
    When pasting some of my post urls to Twitter, the image set in the snippet editor is not showing.
    First, I suspected the webp format I used.
    But the issue is still present with the png format.

    You can test this url: https://justcooknbake.com/indian-onion-salad/

    Your help please.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting us and we regret the inconvenience caused.

    I tested the URL using Twitter’s Validator Tool and I was able to replicate the issue.

    Upon clicking again on the Preview Card option, which fetches new data from the website, the issue was fixed. Here’s a screenshot: https://i.rankmath.com/mt3t3S

    Could you please clear your website and browser’s cache and test the URL again to see if the issue gets fixed on your end too?

    You can also try in an incognito (private) window of your web browser.

    With that being said, upon inspecting the source of the page, I noticed that due to the presence of huge lines of internal CSS styles and scripts, the meta tags section of Rank Math is pushed downwards in the source code.

    Many social media platforms look for the OG tags only within the first 60kbs of the page source and if not found, they might ignore the tags even if the tags are in the source code.

    You can move the internal CSS styles in a separate CSS file to fix this issue.

    Please let us know how that goes.

    Thank you.

    It works now. Thanks.

    Can I use webp instead of png for Twitter and Facebook?

    Prabhat
    Rank Math agency

    Hello,

    Only jpeg, png, and gif is supported for OG image (social image).

    You can read more about this here:
    https://developers.facebook.com/docs/sharing/webmasters/#images

    Hope this helps.

    Thank you.

    Thanks.
    Great support as usual.

    Anas
    Rank Math business

    Hello,

    We are super happy that your issue is resolved. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

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

The ticket ‘Twitter image not showing’ is closed to new replies.