Home › Forums › Support › Add class when disable feature image This topic has 5 replies, 3 voices, and was last updated 6 months ago by Ying. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts September 28, 2022 at 6:01 am #2356312 Gonzalo Hi there, I would like to add a special class, only to the posts that set the featured image disabled. Can you help me? September 28, 2022 at 7:17 pm #2357064 Fernando Customer Support Hi Gonzalo, What are you planning to do? There’s a class that’s added or removed – featured-image-active – depending if the feature image is enabled or not. You can use the existence or non existence of this class with your code. September 29, 2022 at 6:01 am #2357576 Gonzalo Hi Fernando, I need add class, when featured image it’s disabled. e.g. `.my-class .featured-image-disabled {margin-top:50px;} I guess that class doesn’t exist. Maybe with a PHP condition? September 29, 2022 at 11:30 am #2358044 YingStaff Customer Support You can use body:not(.featured-image-active). September 29, 2022 at 11:57 am #2358071 Gonzalo Great, thank you Ying! September 29, 2022 at 12:31 pm #2358112 YingStaff Customer Support No problem 🙂 Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In