Site logo

Archived topic

Getting two images at the top of every post

5 replies · Started by James on November 10, 2022

Viewing posts 1–6 of 6

Hello:

I have an issue with featured images- most of my posts have a featured image and it is the same image that I use at the top of each post.

When I look at the post on my website it displays the post correctly with the image at the top.

I have the GP Premium plugin activated and I use it for one thing- Google Analytics (within the Elements module.)

When I deactivate the GP Premium plugin (I'm trying to speed up my site) when I view a post, there is one image displayed twice at the top of each page.

I can correct the error by not selecting the "featured image" within the post- in which case one image is displayed but I need the featured images for my homepage (on which I'm using the WP Show Posts plugin)

Is there a way that I can deactivate GP Premium, use featured images and only have one image displayed at the top of each post?

Thanks

Hi there,

You can use CSS to hide the featured image.

If you can link me to a post or anywhere you don't want double images, I can take a look for you.

Let me know :)

Hello:

I have added a link to a page, where I want the featured image hidden, in the box below - it is one of many posts.

Can you try adding this PHP snippet then disable GP premium?

add_action('wp', function() {
    remove_action( 'generate_before_content', 'generate_featured_page_header_inside_single', 10 );	
});

Adding PHP: https://docs.generatepress.com/article/adding-php/

It works, thanks.

You are welcome   :)

This archived topic is closed to new replies.