[Resolved] Featured Image for 'latest post' page?

Home Forums Support [Resolved] Featured Image for 'latest post' page?

Home Forums Support Featured Image for 'latest post' page?

  • This topic has 4 replies, 2 voices, and was last updated 7 years ago by Leo.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #298702
    Mark

    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

    #298703
    Mark

    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?

    #298708
    Leo
    Staff
    Customer Support

    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.

    #298717
    Mark

    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+

    #298718
    Leo
    Staff
    Customer Support

    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!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.