Customize/change featured image for post categories
-
Hi there — I’m using a theme that displays a post’s featured image as the header on the post page. For most posts, that’s great, but some of our posts are profiles of people involved in our organization, and the giant featured headshot photos are really not working as header images! I’ve been able to remove the header image from all posts and replace with a solid color, using the following code in the Custom CSS box:
.single-post .header-filter {
background-image: none !important;
background-color: #B2CDB5;
}I’d like to do the following, though:
1) Replace the featured image with another image (instead of no image / solid color)
2) Have this apply to only certain categories of posts, i.e. the “People” category(I do need to keep the featured image as a photograph of the person featured, so that it shows up that way in the post feed elsewhere on the site.) I’m guessing I need to change the background-image attribute to swap in a different image, but it hasn’t worked so far, so it’s probably CSS syntax error on my part. Applying it to only certain post categories has me stumped, though. I’m getting back into WP and CSS after a few years break; any help is very appreciated!
The page I need help with: [log in to see the link]
- The topic ‘Customize/change featured image for post categories’ is closed to new replies.