Jardena Posted May 26 Posted May 26 I run a website with a significant visual element, and I am attempting to change the colour of an individual blog post. I found CSS solutions for people having this issue in 7.0, but haven't found anything for 7.1. I also tried inserting custom CSS that @tuanphan had posted elsewhere, but it did not work for me in this case. I am a CSS newbie, so it could be simply that I had issues finding the correct section-id when I inspected the elements on the page. Your help would be so very appreciated! The website is https://www.oursingingbodies.com/the-project and I would like the background of posts to be white but the most recent post (not yet published) to have a black background.
tuanphan Posted May 27 Posted May 27 White Background of post items, like this or background of entire /the-project page? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Jardena Posted May 28 Author Posted May 28 Hi @tuanphan! Background of the entire page! I want to keep this one black, because it works a lot better aesthetically -- https://www.oursingingbodies.com/the-project/y022ie9c9qnduzg3a3y0afah5q76w6 but the rest of the blog white.
Jardena Posted May 29 Author Posted May 29 @tuanphan Would you mind showing me how you managed to change the entire page background to white? Thank you SO much for your help, it's so appreciated.
Solution tuanphan Posted May 31 Solution Posted May 31 On 5/28/2024 at 8:31 PM, Jardena said: Hi @tuanphan! Background of the entire page! I want to keep this one black, because it works a lot better aesthetically -- https://www.oursingingbodies.com/the-project/y022ie9c9qnduzg3a3y0afah5q76w6 but the rest of the blog white. You can use this code to Website > Website Tools > Custom CSS body[class*="type-blog"].view-item:not(#item-6650c8ea8432932e0f801f49) article>section * { color: black !important; } body[class*="type-blog"].view-item:not(#item-6650c8ea8432932e0f801f49) article>section .section-background { background-color: white !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment