Support » Plugin: Yoast SEO » How to manipulate the open graph image?

  • Resolved Babak Fakhamzadeh

    (@mastababa)


    YOAST nicely includes the featured image of a post for og:image and twitter:image.

    However, when the featured image is ‘large’, WhatsApp typically does not include a preview of the image when sharing the associated link.

    How can the image that YOAST sets for the featured image be changed from the original image to a smaller version (say the ‘large’ version)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Babak Fakhamzadeh

    (@mastababa)

    Took some searching.

    add_filter( ‘wpseo_opengraph_image_size’, function() { return ‘large’; } );
    add_filter( ‘wpseo_twitter_image_size’, function() { return ‘large’; } );

    Plugin Support devnihil

    (@devnihil)

    @mastababa Thanks for your reply. As you already found the filter for modifying this we are going ahead and setting this as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to manipulate the open graph image?’ is closed to new replies.