Force default OG:Image
-
So I’ve always used the following code snippet to force the default OG:Image and Twitter:Card image:
add_filter('wpseo_pre_analysis_post_content','mysite_opengraph_content'); function mysite_opengraph_content($val){return '<img src="https://www.rafaeldejongh.com/wp-content/uploads/2017/08/RafaelDeJongh-Web-Developer-3D-Artist.jpg" alt="Rafa?l De Jongh - Web Developer | 3D Artist"/>' . $val;}
However this doesn’t seem to work anymore, does anyone know a different way to solve this like it did in the past with above mentioned code?
It’s a shame the plugin still doesn’t have this feature by default.
The page I need help with: [log in to see the link]
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Force default OG:Image’ is closed to new replies.