Viewing 2 replies - 1 through 2 (of 2 total)
  • Having same exact issue.

    Home page uses site logo which I want, but product pages don’t use featured image.

    Been workin on this for two days, and I normally use all-in-one seo and it’s a piece of cake. Have a new kid come on board and uses Yoast and this is a major issue.

    Thread Starter joshuaiz

    (@joshuaiz)

    I ended up using a workaround with a conditional statement in header.php for a specific page but that is not practical for a lot of pages:

    <?php if (is_page('your-page')) { ?>
       <meta property="og:image" content="https://example.com/wp-content/uploads/2015/07/image.png">
       <?php } else { ?>
       <meta property="og:image" content="https://example.com/wp-content/uploads/2015/07/image2.png">
       <?php }?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Open Graph images not grabbing featured image for pages’ is closed to new replies.