Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
821 views
in Q2A Core by
Hi. Is it possible to set different backgrounds on each categories? Any idea how to do this? Any code?
Q2A version: 1.6

2 Answers

0 votes
by

Check class (qa-category-xx) of <body> tag on each categories.

+1 vote
by

You can do it just like below - 

body.qa-category-2 {
    background: #eee url(https://encrypted-tbn0.gstatic.com/images?          
    q=tbn:ANd9GcS9315GUZu8VtdGwu5pgKJVNmHTRtj9FLmCkGY1gybUlOFDHlae)repeat left top;
    text-align: center;
    margin: 0;
    padding: 0;
   /*Some of your styles*/
}
Here the qa-category-2 is the class assigned to your category . 2 at the end is the category id . This one you can get from the database or from the category page itself . You can see that using inspect element . See the below image . It points to the category#2 .
 
 
Hope this helps . 
 
Thanks . 

 

...