Pinterest OG image not working

#557938
  • Resolved Anonymous
    Rank Math free

    Dear RankMath support.
    I hope everything is well.

    I have a site with WooCommerce Vendors plugin which implements them as a taxonomy. I added Monarch Social Sharing buttons there and now Linkedin, FB, and Twitter are working properly.

    I am however having an issue with Pinterest image when sharing. The image pulls an image from the product below and not the “Profile” image I’d want to show. I checked for any plugin conflicts and searched online for the issue but couldn’t find anything.

    I already tried adding the following snippet to fix the issue but it’s not helping: https://privatebin.net/?064040a6dbae3587#2whwYH9xbmEJFSrn3Ts8U7MPpJgQaHqb4dMVX3YHxyzo

    Thank you,
    Neven

Viewing 9 replies - 1 through 9 (of 9 total)
  • Nigel
    Rank Math business

    Hello,

    Thank you for contacting Rank Math for help with setting the og:image for a custom taxonomy on your website.

    I checked the code snippet you shared and it looks like it should work. Please review the code in case of mistakes we may have missed. If it still does not work, there may be a conflict blocking it from working. Please follow our guide to confirm theme/plugin conflicts: https://rankmath.com/kb/check-plugin-conflicts/. If the troubleshooting guide does not help, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Anonymous
    Rank Math free

    Hello,

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

    Thank you.

    Anonymous
    Rank Math free

    I’ve updated the vault and I’ve checked for conflicts already.

    Hello,

    We can see that there are no issues with the snippet you are adding and it’s getting parsed on the staging website.

    However, that snippet is currently outputting a path that doesn’t exist and as such the image from there cannot be added to the Rich Pins, but if you use a fallback image that exists it will be loaded into the Rich Pins as a possibility to get added to it.

    While doing that, could you also please share a screenshot of the pins available to you while sharing the page on Pinterest so we can check those as well?

    Looking forward to hearing back from you.

    Anonymous
    Rank Math free

    Hi again. Don’t want to bother, but I’m just checking if my last message came through. I can’t seem to view it on other browsers and it’s maked as yellow.

    Anonymous
    Rank Math free

    Hm. On production, I had set a fallback image that exists. I’m sending the code snippet again as the old one expired: https://privatebin.net/?5bfca55eed1bdc7e#Aqt2jS2phH3q5obN8XCdMDpUMzKyijYk9MSr8yhqV3oh

    This is an example where Twitter’s not showing the image, Pinterest still showing a product even after changing the fallback image on staging. In the <head> tag I’m not seeing og:image between the <!– Search Engine Optimization by Rank Math PRO – https://s.rankmath.com/home –> comment.
    This also happens when I comment out the snippet.

    This is pinterest sharing example for Vendors for https://australianteachersmarketplace.com.au/vendor/all-therapy-resources/: Pinterest Screenshot https://snipboard.io/gkZJsi.jpg
    This is for product https://australianteachersmarketplace.com.au/product/student-awards-character-traits-for-kids/: Pinterst Screenshot https://snipboard.io/toLXAE.jpg

    Best,
    Neven

    Hello,

    The og:image tag is already added to the pages:

    However, the filter you have used for Twitter is incorrect. You should use the following filter:

    add_filter( 'rank_math/opengraph/twitter/image', 'custom_rank_math_og_image', 10, 1 );
    

    Let us know how that goes. Looking forward to helping you.

    Anonymous
    Rank Math free

    Sorry for the delay in response.

    The og:image is indeed added, but it’s the wrong one in most cases. Like here, it’s picking up a completely wrong image when you click pinterest: https://australianteachersmarketplace.com.au/vendor/imaginative-teacher/

    Hello,

    The og:image tag is present on the site. However, the plugin you are using seems to be submitting a different image and ignoring the image set in the OpenGraph tags. You can try using a different plugin or get in touch with the support of your social sharing plugin to get this fixed.

    Let us know how that goes. Looking forward to helping 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 9 replies - 1 through 9 (of 9 total)

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