Issue with social share image

#517328
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    I checked a few URLs on your site and og:iamge seems to be working fine for those URLs. Here’s a screenshot for your reference:

    However, if there are any specific affected URLs you have, please share those URLs with us here. So that we can investigate the issue further for you.

    Looking forward to helping you.

    Thank you.

    Hi Sakib
    The matter is that I have set a social share image by default, the one you see in the homeapage for all the website but some pages as you can see show the images they want, not the one I have set by default.

    Hello,

    Please be advised 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.

    If you wish to force the use of the default social 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/

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

The ticket ‘Issue with social share image’ is closed to new replies.