Skip to content
Public Ticket #21440

Choose to not display a featured image on every pages

Conversation thread

PenciDesign Supporter replied

Staff Reply

Hi,

It was a cache issue again. The code on the Custom CSS field only displays on the page you've added.

OR you can modify the CSS code like this:

body.page-123 .hentry .post-image {
    display: none;
}

Replace 123 with the page ID. Read the document to understand how to find the post ID.

Regards,
PenciDesign.


Zebibron replied

Customer Reply

Ok, you right, it was a cashe issue... It works but... It hides all the featured images of the website (in all pages). I just want to hide them on some pages only. :/

Best regards,

Xavier

PenciDesign Supporter replied

Staff Reply

Hi,

That's strange, this code working properly on my testing site, so please make sure you've cleared all the browser cache, and site cache then checks again.

Regards,
PenciDesign.


Zebibron replied

Customer Reply

Hi,

Here it's the code I put:

3577683358.png

(I tried without the "important")

Thanks,

Best regards,

PenciDesign Supporter replied

Staff Reply

Hi,

Please send me a screenshot of the custom CSS settings.

Regards,
PenciDesign.


Zebibron replied

Customer Reply

The page is not online yet, can I send you source code or something else maybe? :)

Thanks!

PenciDesign Supporter replied

Staff Reply

Hi,

Please send me a page URL you've added this code.

Regards,
PenciDesign.


Zebibron replied

Customer Reply

Hi, 

This code doesn't work... :/ 

Best regards,

Xavier

PenciDesign Supporter replied

Staff Reply

Hi,

There are options no customize the featured image display for the invidual page. You need to turn it on/off on Appearance → Customize → Pages → General or paste this CSS code to Page Options → Custom CSS:

body.page .hentry .post-image {
    display: none;
}

Regards,
PenciDesign.



Zebibron replied

Customer Reply

If it's not possible, I can do it in the  Custom CSS Code for all the pages I want?

.post-image {
display:none!important;

Do you recommend? 

Edit: It's not working^^

Zebibron replied

Customer Reply

Hi,

Sorry but I thought the page header was this part: page-header.png

I want to remove the featured image on some of my pages. 

If I do it here:

5777478742.png

It's for all my pages, which I don't want. :/

Thanks!

Best regards,

Xavier

PenciDesign Supporter replied

Staff Reply

Hi,

If you want to hide it on the page, please scroll to the Page Options → Page Header → Enable/Disable Page Header: select "Disable".

Regards,
PenciDesign.


Zebibron replied

Customer Reply

Hi,

Thanks for the answer but I don't see the same options on my pages, what I have is.. :/

Best regards,

Xavier

PenciDesign Supporter replied

Staff Reply

Hi,

You can change the settings for the invidual page by going to the page editor screen → Page Options.

If you want to change this settings for the Post, please go to the post editor screen → Options for this Posts/Page → Hide Featured Image Auto Appears on This Post? → Yes, Hide Featured Image.

C0vptrJ.png

Regards,
PenciDesign.


Zebibron started the conversation

Conversation Start

Hello!

I activated the option to show up featured images on top of every pages... But my question is: is it possible to desactivate this option for a selection of pages? Desactivate or not showing up featured images on these pages...

Thanks!

Best regards,

Xavier

Want to join this conversation or access attachments? Sign in first.