Archived topic
Featured Image not Appearing
12 replies · Started by Aiswarya R on November 16, 2019
My featured image is not showing in the post.
I have tick marked 'Display featured images' below the title in the Customizer.
I have also added a header hook to merge the header and post title.
Hi there,
I am not seeing a Featured image on your archive pages either.
Have you added a Featured Image in the Post editor?
Yeah, I have added a featured image in the post editor.
Using this method?
https://docs.generatepress.com/article/adding-featured-images/
If so can you tell me what settings you have in the Header Element?
Couple other places to check to make sure its not disabled:
https://docs.generatepress.com/article/layout-element-overview/
https://docs.generatepress.com/article/disable-elements-overview/
Yes
It might be something related to the Hook I have added in the Header!
After deleting it, I'm able to get the featured image displayed below the title
Oh ok - what did you add?
https://paste.pics/0a15f2770e4ba483c12babbd4203fcbc
https://paste.pics/4dee704d656f33716ce7f03251401a72
These are the settings I have
Sorry what was the Hook Element containing ? Is it required do you need help with that?
This is the code for the hook element:
<h1>
{{post_title}}
</h1>
<div class='hero-meta'>
Published on {{post_date}} Written by {{post_author}}
</div>
The hook element is for the header to merge the post name and the header! (As you can see in the website)
The settings of the element are:
https://paste.pics/0a15f2770e4ba483c12babbd4203fcbc
https://paste.pics/4dee704d656f33716ce7f03251401a72
That shouldn't effect the display of the Featured Image.
Can you change Background Image to Featured Image. This will display this option: Disable Featured Image make sure that is unchecked. Then you can change the background image back again
Thank you!
It's working now
Glad to be of help.