Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi @emjay_dee,

    Yes! You can set up the default og:image, it does require a filter (for now).

    Found here: http://theseoframework.com/docs/api/filters/

    Add the following code to your theme’s functions.php or your own plugin:

    add_filter( 'the_seo_framework_og_image_args', 'my_awesome_og_image' );
    function my_awesome_og_image( $args ) {
    
       //* You don't have to escape this url :)
       $args['image'] = home_url( '/path/to/yourimage200_to_1500px.jpg' );
    
       //* Set this to false if you wish that the homepage featured image overrides the URL set above
       $args['frontpage'] = false;
    
       return $args;
    }

    I haven’t really got to test the filter yet but it should work as provided 🙂

    Let me know if you have any further questions!
    Thanks and have a great day 🙂

    Thread Starter emjay_dee

    (@emjay_dee)

    Thank you so much, it worked 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘OG Image’ is closed to new replies.