og:image size override not working
-
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)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘og:image size override not working’ is closed to new replies.