Ethos: featured images on category archive pages

Hi there,I disabled the large featured images on single posts because they were just too big. But I wanted to keep a small featured image on the category archive page.

Hi There,

Thanks for writing in! I have checked one of your referenced posts, but there is no featured image attached to your blog posts, so that it will not show in your categories as well (see secure note). You need to set featured image to your posts, so that it should display on the left side.

Also I see that you have correctly added CSS rule to hide your single post featured images and that code will only apply to your single blog posts.

.single-post .entry-featured {
    display: none;
}

Hope that helps.

That is weird. The posts do have featured images but they are not appearing in the archive list view.

Hi,

First, backup your custom CSS codes, then remove them and recheck this issue, if you couldn’t narrow it down, then please provide us with WordPress Dashboard login details in a “Secure Note” so we can investigate this issue.

Thanks.

Thanks for your reply. Unfortunately, removing custom css does not solve this issue.

Hi @Mbzo

Could you please double check this password, as I got an error message as I shared in the Secure Note below.

Thanks.

Hi try this:

Hi @Mbzo

It’s this line:
<?php if ( is_home() || ( is_singular('post') && !in_category( array( 1, 31, 32 ) ) ) ) : ?>

In your child theme file here:
(framework/views/ethos/content.php)

That’s causing this issue, it simply will show the featured image on homepage, and on single post view if the post wasn’t in the category IDs (1, 31, 32). You need either to remove this file if you don’t need this modification or edit it as you like.

Thanks.

Hi @Alaa, many thanks.
I commented out that line and the featured images are displaying as expected. :slight_smile:
Cheers!

Glad to hear it’s sorted.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.