I have problem with the OpenGraph Thumbnail Setup on my site

#602756
  • Resolved Anonymous
    Rank Math free

    I already set only one image to be the OpenGraph Thumbnail for my site and it is mentioned in the plugin settings that When a featured image or an OpenGraph Image is not set for individual posts/pages/CPTs, the default image will be used as a fallback thumbnail when your post is shared on Facebook.

    But I was surprised when I found that Rank Math is applying other images…
    I will explain if you tried to debug the home page you will find the right OpenGraph Thumbnail but if you go to any other page Rank Math will apply the first image on that particular page! without even setting it!!!

    I don’t know why this happened if there are any incompatibility issues between Rank Math and Beaver Theme.

    However, if you needed to know more please use the user I created for you to explore our site.

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.

    Please note that the fallback/Default Open Graph Image shows up only when:

    1. You have not uploaded any featured image to a post.
    2. You are not using even a single image inside the post.
    3. You have not used any image in the social tab.

    If any of these are true, then that image will be used instead of the default social image.

    Alternatively, if you wish to force the use of the default/fallback opengraph image everywhere, you may need to use this filter:

    add_filter('rank_math/opengraph/pre_set_content_image', function() {
    	return true;
    });

    And here’s a guide to adding the code to the website:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    P.S. I have not yet applied the filter to your site so you can decide and let us know how you want to continue with this one.

    Looking forward to helping you.

    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 ‘I have problem with the OpenGraph Thumbnail Setup on my site’ is closed to new replies.