[Resolved] Latest post featured image in blog hero section ?

Home Forums Support [Resolved] Latest post featured image in blog hero section ?

Home Forums Support Latest post featured image in blog hero section ?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #948127
    baudebert

    Hello GP team,

    I am building a blog page for a customer, with a hero header using Elements.

    My customer would like the featured image from the latest post to be dynamically used as hero background image. It would look like this : https://test.venisebotticelli.com/blog/

    I understand I will have to write some code for that, could you advise the most relevant solution to do it ? (change template, use theme filter ?

    Thanks a lot

    Bérangère

    #948133
    Leo
    Staff
    Customer Support

    Hi there,

    Something like this should help you get started:
    https://generatepress.com/forums/topic/how-to-use-element-header-to-display-feature-image-and-title/#post-721662

    Let me know 🙂

    #948227
    baudebert

    Hi Leo, fantastic, that did it ! Many thanks.

    #948302
    Leo
    Staff
    Customer Support

    No problem 🙂

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