Archived topic
Customize "Featured image" on a single post with Elements
4 replies · Started by David on December 16, 2018
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!
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?
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
Hmm, guess I already managed to get it done:
- https://generatepress.com/forums/topic/featured-image-shortcode/
Glad to hear that !