og image woo product page

#145398
  • Resolved Thomas
    Rank Math free

    Hi,
    Sorry for my English, I am French.

    Here is my question: on a classic woocommerce product page, rank math choose the link of the first thumbnail rather than the product image. (<meta property=”og:image” content= link to first thumbnail rather than product image link) Why? And how to make it the url of the product image?

    Thank you in advance for your help

Viewing 9 replies - 1 through 9 (of 9 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.

    It seems to be working fine on our end:
    https://i.rankmath.com/TepFD7

    Could you please also share the URL of the product to further investigate? You can add it in the designated Sensitive Data section
    Sensitive Data Section

    It is completely secure, and only our support staff has access to that section.

    Thank you, and we really look forward to helping you.

    Thomas
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Thomas
    Rank Math free

    Hello,

    Did I say something wrong?

    Thomas
    Rank Math free

    Hello,

    Is there a problem? Why don’t you answer anymore?

    Thank you for letting me know if you are considering helping me. I was proposing the idea that Rank Math does not display the product image because of the .webp extension. Would that be it?

    Hello,

    Thank you for following up, and sorry for the delay.

    Yes, it seems that the product image you have set is in .webp format, that’s why the og:image is only detecting the product gallery image which is in .jpg format.

    If your image was uploaded as .jpg or .png originally, it seems to be converted by one of your plugins which has an image optimization feature. Please use only these supported image file extensions in your product images.

    I hope that helps. Thank you, and looking forward to your update.

    Thomas
    Rank Math free

    OK, thank you for your answer.

    There is no hook or filter to force recognition of the original file ??

    Why accept only jpg or png ? Rank Math is for SEO and all SEO tools recommend webp type image compression. Webp files are perfectly managed by WordPress and Woocommerce and all social networks can display webp files.

    If you don’t have a solution, Rank Math has no more interest on this point 🙁 Would a next update fix this?

    Hello,

    Thank you for the follow-up.

    Unfortunately, Open Graph only supports image/jpeg, image/gif, or image/png. You can also check this link for the standard image file extensions supported by Open Graph:
    https://developers.facebook.com/docs/sharing/webmasters/#images

    I hope that helps. Thank you, and please don’t hesitate to contact us if you need further assistance.

    Thomas
    Rank Math free

    To end this discussion, please note that Yoast recognizes the .wepb file as a product image and displays it perfectly in og:image. Bye

    Febby
    Rank Math free

    Hello,

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

    Thank you.

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

You must be logged in to reply to this ticket.