Last active
November 26, 2018 01:44
-
-
Save ville6000/21a7f9be90546b06924db874ec0d49eb to your computer and use it in GitHub Desktop.
Change Yoast SEO default image size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function theme_yoastseo_opengraph_image_size() { | |
return 'large'; | |
} | |
add_filter( 'wpseo_opengraph_image_size', 'theme_yoastseo_opengraph_image_size', 10 ); | |
function theme_yoastseo_twitter_image_size() { | |
return 'large'; | |
} | |
add_filter( 'wpseo_twitter_image_size', 'theme_yoastseo_twitter_image_size', 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment