Site logo

Archived topic

Feature Image not showing above title

5 replies · Started by Koushik on April 26, 2021

Viewing posts 1–6 of 6

I have selected the option "Above Title" in the customize section but still featured images shows below the title.Any help?

Hi there,

in the Customizer > Layout > Blog --> Featured images - there are separate tabs for Archive / Posts / Pages - have you updated each one for your needs?

If its still a problem then please share a link to a post/page where i can see the problem

Hi there,

yes i have selected location as “Above title” for featured images for archives,post as well as pages but showing below title only.

plz check this page

The featured image won't go above the title because the title is added through a Header Element. Check Appearance > Elements.

You should disable this Header element if you need to rearrange the order between the title and the featured image.

Thanks Elvin, this works but then header is not visible.any help?

There's a dilemma here:

Previously, your site was set up to have a Header Element with {{post_title}} in it.

Usage of {{post_title}} or other template tags disable its default place on the page and moves it into the Header Element.

And since the {{post_title}} tag disabled the default title position and moved it to the Header element, David's suggestion didn't work because the title element where the featured image was supposed to go on top of was moved way up into the Header element (.page-hero) section.

Now, I asked to disable the Header Element so the customizer settings would work, but if you must keep the Header element and move the featured image inside it above the {{post_title}}, you can use {{custom_field._thumbnail_id}} to display the featured image in it.

And for resizing, try David's PHP snippet here:
https://generatepress.com/forums/topic/elements-header-swapping-image-source-based-on-width/#post-1415285

This archived topic is closed to new replies.