Specific background for posts in specific category!
-
Hello WordPress Community,
I need YOUR help. π
I’ve set up 4 different categories and I do have 4 different backgrounds/headers. With the “style-custom.css” I was able to preselct the background image when one would select a certain category.BUT now the tricky part, if a post has a certain category it does not work π
throwholics(dot)com <– can you please check. We are publishing in 4 different categories and would like the article which we post in a certain category to have the corresponding background.Do you know the code, if so please let me know how to do that. I could not find a plugin who does that…
And i assume that it would be the easiest to just do it via a small css code as i did for the categories itself.THank you in advance.
body { background-color:#000; background-image:url(img/3.png); background-position:center top; background-repeat:no-repeat; color:#555; font-family:Arial, Helvetica, Verdana, sans-serif; font-size:14px;} body.category-hammer { background-color:#000; background-image:url(img/4.png); background-position:center top; background-repeat:no-repeat; color:#555; font-family:Arial, Helvetica, Verdana, sans-serif; font-size:14px;} body.category-javelin { background-color:#000; background-image:url(img/2.png); background-position:center top; background-repeat:no-repeat; color:#555; font-family:Arial, Helvetica, Verdana, sans-serif; font-size:14px;} body.category-shot-put { background-color:#000; background-image:url(img/1.png); background-position:center top; background-repeat:no-repeat; color:#555; font-family:Arial, Helvetica, Verdana, sans-serif; font-size:14px;}
- The topic ‘Specific background for posts in specific category!’ is closed to new replies.