Twitter cards doesn’t display the image in my post and pages

#585568
  • Resolved Anonymous
    Rank Math free

    Good afternoon. I am using Rank Math on my website http://www.erreklamatu.com. When I share a post or page on Facebook, the Facebook card is displayed without problems, but when I do it on Twitter, the image I selected in Rank Math is not displayed. The rest of the elements are displayed (image, description…), but the image is not displayed. I’ve tried to fix it but can’t. Can you help me? Thank you so much

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    I’ve checked your site using Twitter Card Validator tool, and it is returning this error:

    The image URL https://erreklamatu.com/wp-content/uploads/2023/05/Erreklamatu-logo-EUS.jpg specified by the 'twitter:image' metatag may be restricted by the site's robots.txt file, which will prevent Twitter from fetching it.
    

    Upon checking your robots.txt, it seems that you have blocked the image path using this rule:

    Disallow: /wp-content/uploads/

    You can remove that line so the Twitter bot can crawl the image and display it properly. Here’s a link on how to edit your robots.txt using Rank Math:
    https://rankmath.com/kb/how-to-edit-robots-txt-with-rank-math/

    Hope that helps.

    Thank you.

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

The ticket ‘Twitter cards doesn’t display the image in my post and pages’ is closed to new replies.