Home › Forums › Support › Change title background color in specific category? This topic has 3 replies, 3 voices, and was last updated 8 years, 3 months ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts May 21, 2015 at 2:04 am #109309 Are Martin I´m trying to change the background color (and also content background color) of the post title in a specific category with no luck. This is the CSS code I tried to use. The category-id is 108 .category-108 .single .entry-title { background: #f7f7f7; } What am I doing wrong here? Thankful for help! Are Martin Kallåk May 21, 2015 at 7:59 am #109358 TomLead Developer Lead Developer So close! The category class and .single class are both a part of the <body> element, so it would be: .category-108.single .entry-title { background: #f7f7f7; } December 21, 2015 at 4:14 pm #161347 Derek Binion Could I make all post title backgrounds the same color regardless of category with a similar code? December 21, 2015 at 11:50 pm #161365 TomLead Developer Lead Developer For sure! If you’re targeting the post title on single posts: .single .entry-title { background: #f7f7f7; } If you’re targeting all posts titles (pages, posts etc..) .entry-title { background: #f7f7f7; } Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In