• Resolved martialparfait

    (@martialparfait)


    Hi!

    I tried this code to force og:image to render the large image size. It’s works for twitter but not for og:image.
    Precision : There is no custom og:image uploaded on the post field. It’s the default featured img of the post.
    Am I wrong using this code ?

    Thanks !

    `function set_custom_facebook_image_size( $img_size ) {
    return ‘large’;
    }
    add_filter( ‘wpseo_twitter_image_size’, ‘set_custom_facebook_image_size’ );
    add_filter( ‘wpseo_opengraph_image_size’, ‘set_custom_facebook_image_size’ );

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support amboutwe

    (@amboutwe)

    What are the diminsions of the ‘large’ image size? The og:image has size restrictions and will ignore images that are too big.

    The minimum width and height is 200px while the maximum width and height we recommend is 2000x1600px, and the image file is less than 2mb in size.

    Plugin Support Jerlyn

    (@jerparx)

    Closed. No further questions.

    Thread Starter martialparfait

    (@martialparfait)

    Hi ! Sorry for the late. My large size is 1024×1024.

    Plugin Support amboutwe

    (@amboutwe)

    I was unable to reproduce the issue using the information you provided with the current WordPress and Yoast SEO versions.

    Just to be sure, we would like to rule out any plugin or theme conflicts that may occur. The fastest way to do this is to?deactivate all non-Yoast plugins and switch to a standard theme?like?Twenty Nineteen.?

    Test this on your development or staging site, if you have one. If not, we recommend using the?Health Check & Troubleshooting?plugin. This plugin allows you to run a conflict check?without affecting normal visitors to your site.

    As we can imagine that you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process:?How to check for plugin conflicts.

    Thread Starter martialparfait

    (@martialparfait)

    Ok I will try this as soon as possible

    Hi,

    Please know that we will keep this open for another week after which we will close in order to keep the overview.

    Plugin Support amboutwe

    (@amboutwe)

    This thread has been marked as resolved due to a lack of activity.

    You’re always welcome to re-open this topic. Please read this post before opening a new request.

    Thanks for understanding!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘og:image size override not working’ is closed to new replies.