Site logo

Archived topic

Why featured Image doubled up at top of post?

11 replies · Started by Stephen on July 22, 2021

Viewing posts 1–12 of 12

My image for posts archives/category page was a square thumbnail. I wanted to use the full area in the grid display, so I played with some settings. Changed image size to "large" and now on post page, the first image shows twice?

Hi Stephen,

The first image is showing twice because:

The 1st image: It's the featured image and the theme displays the featured image on the top of the single post page by default. (if "display featured image" is checked on customizer).

The 2nd image: This seems to be manually added to the content of the page. It looks like a GenerateBlocks Container Block inside an image block.

To remove the duplicate, you can remove the manually added image inside the content area of the page.

Yes, the second image is manually added, which was just part of me building the post.

Is there any advantage to letting the system automatically insert the featured image at the top instead of manually adding the image when I build a post?

Or is there an advantage of me adding it manually instead of letting the system do it?

Hi there,

The Featured Image option is the better method to use. Some of the reasons:

Featured image are used by the Blog / Archives. They won't use one in the content without writing some code that is prone to issues.
SEO plugins also look for this image.
The Featured Image can be easily disabled, resized or repositioned from within the Theme settings.

IF you use the image in the content and want to change its size or placement in the future then you're going to have do that manually on every single post or page.

Okay, and I set it to display below the title. But why doesn't it show the caption from the meta box in the image library?

Thanks. Since you said "currently", will there be a time when the snippet isn't required? And if so, how I know it?

(EDIT) And maybe a way to change that code so caption doesn't show in archives?

We will likely adding it as an option but no timeline just yet.

I'll try to comment here again when the option is available.

ok. Is there a way to keep that caption from showing in archvive excerpts? Or to only make it show on posts?

In the code - look for:

if( $html == '' ) {

and change to:

if( $html == '' || !is_singular() ) {

Thanks.

You're welcome

This archived topic is closed to new replies.