[Support request] Customize "Featured image" on a single post with Elements

Home Forums Support [Support request] Customize "Featured image" on a single post with Elements

Home Forums Support Customize "Featured image" on a single post with Elements

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #757971
    David

    Good morning guys!

    I’m looking for customize a featured image with elements on a single post.

    Now, i have this code (Elements)

    (((here i need a code for a featured image)))
    <h1>{{post_title}}</h1>
    <br>
    {{post_author}} · {{post_terms.category}}

    I want to put the highlighted image in the upper area of the post. Which is the code? And … Can I control the size of the image? I would like it to be with the maximum width of the structure.

    Thank you so much!

    #758267
    Leo
    Staff
    Customer Support

    Hi there,

    I’m not quite sure what you mean.

    So you want the featured image as a static image above the existing page hero content and not behind as a background image?

    #1324628
    Marc

    Hi there,

    Like Leo suggests, this is what I like to do: the featured image as part of the header element. Not as background.

    So by default it’s possible to add post title, post date, post author, post terms and custom fields. Now I’m wondering if there’s a kind of workaround (php snippet or something) to add the featured image as content. Like it has been done here, on the right (circle image): https://snipboard.io/QbfPzU.jpg

    Btw: I managed to add the excerpt already, by using this info:
    https://www.ostraining.com/blog/wordpress/add-excerpts-to-wordpress-pages/
    https://docs.generatepress.com/article/page-hero-examples/#example-4

    #1324699
    Marc

    Hmm, guess I already managed to get it done:
    https://generatepress.com/forums/topic/featured-image-shortcode/

    #1324866
    David
    Staff
    Customer Support

    Glad to hear that !

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