Site logo

Archived topic

Featured Image for 'latest post' page?

4 replies · Started by Em on March 28, 2017

Viewing posts 1–5 of 5

Hi all!

Trying to get a featured image on my default "latest post" page (homepage), but it seems there's no way to do it. Now, when I share the link on Facebook, it shows up without an image. Is there any way to select a featured image for that page?

Thanks in advance!

http://www.zenchurch.net

Just wanting to clarify some stuff! When someone goes to zenchurch.net, I want the latest post page to be where people land. However, when I share that link on Facebook, no image/text shows up, not even the site title and tagline. Is it possible to set a default image, or even force it to use the header logo as the featured image?

Hi Mark,

If you want to add an image, then maybe try using the After Header hook or Inside Content Container hook:
http://demo.generatepress.com/hook-locations/
https://docs.generatepress.com/article/hooks-overview/

With something like this:

<?php if ( is_front_page() && is_home() ) { ?>
    Insert Image here
<?php } ?>

There is not alot GP can control what Facebook shows but you might be able to use an SEO plugin.
Little bit of info in this post: https://generatepress.com/forums/topic/my-site-displays-the-incorrect-thumbnail-header-photo/

Let me know if this helps.

Thanks, Leo. It does appear to be a Facebook problem. Just tried a few SEO plugins and no dice. Thanks for the quick response!

mdj+

You might have a to wait a few hours or a day to see the preview shows up as Facebook needs to clear cache on their end :)

Glad I could help!

This archived topic is closed to new replies.