Hide featured image in post, but show in category page

Posted in: Newspaper
Post count: 37

Hi

I am trying to create a video post layout using the post cloud template in my setup however it seems to be quite limited with what I want to do..

So I am creating a workaround whereby I select the Video format in the post page and add the YouTube code to the Featured Video section. Obviously it does not create the video on the page so I then embed the YouTube url directly in the post page so it appears in the frontend.

However I then have a featured image of the video, and then the actual video below.

When I try to edit the cloud template by not having the featured image it then does not display in the category page, which I need to show.

So because I still want the featured image to display in my category page, is there is a way to not display / show featured articles in the post page, but still show the featured image in a category page?

I have also tried adding this code to my video post page cloud template:

.tdb-featured-image-bg {
display: none !important;
}

..but it is not saving. I have even typed the code into the live CSS editor but no matter which way I do it, it does not save.

So do you have any suggestions as to how I can do any of the above?

Here is the page:

https://www.digital.theglobalrecruiter.com

Thanks in advance for your help,
Antonmh

  • This topic was modified 5 years by antonmh.
  • This topic was modified 5 years by antonmh.
Post count: 18283

Hello !

What you can do is set an extra class on your featured image inside your post template: https://www.screencast.com/t/wOXKOXvbU

And by using a css code: .CLASSNAME {
display:none;
}

This will make your featured image gone in post but still available to be pulled on other blocks.

I hope this was helpful !

Thank you !

Post count: 37

Hi Vlad

Thank you that has worked, though I needed to place the CSS in my WP theme panel area as it didn’t save in the live CSS page builder directly.

Best regards
Antonmh

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.