Background changed automatically

Premium, Furniture Joomla Design Shop Template with K2Store support
GK User
Wed Aug 29, 2012 12:57 pm
The background colour changed to white only on the homepage...Anybody know how to fix this?
I will want custom colour or white on all the pages..
Thanks if help.!
User avatar
Senior Boarder

GK User
Wed Aug 29, 2012 5:14 pm
You can specify the page suffix (i.e. whitebg) using the template settings and then create a CSS rule for it in the css/template.css file:
Code: Select all
body.whitebg {
background: #fff!important;
}
User avatar
Administrator

GK User
Fri Aug 31, 2012 10:00 am
Hi! Would it be possible to do this and have the background change according to categories. If so where would I specify the suffix?
Regards!
User avatar
Fresh Boarder

GK User
Fri Aug 31, 2012 10:50 am
You have to specify the page suffixes for every menu item with specific category in the "Features" tab at the template settings.
User avatar
Administrator

GK User
Fri Aug 31, 2012 12:01 pm
Can you specify more on how to change background to a custom colour?
Or is there a tutorial on how or a similar thread,I cant find any?
Thanks again.
User avatar
Senior Boarder

GK User
Fri Aug 31, 2012 12:24 pm
when you specify the page suffix then you have to use selector based on the following structure:
Code: Select all
body.YOUR_PAGE_SUFFIX {
   background: YOUR_PAGE_COLOUR!important;
}
User avatar
Administrator

GK User
Fri Aug 31, 2012 12:41 pm
Sorry but what I dont know is how to specify a page suffix?
Thanks
User avatar
Senior Boarder

GK User
Fri Aug 31, 2012 12:43 pm
In the template settings at the Features tab you will have option "Suffixes for pages" - you have to specify in the form Menu item ID and suffix for this menu item ID - then click "Add rule" and save the template configuration.
User avatar
Administrator

GK User
Fri Aug 31, 2012 1:06 pm
Thanks I solved this in another way,
On template.css Ive changed the code and it worked,I tried before without the important; code but now I added important; and it works
Code: Select all
background: url('../images/style1/bg.jpg') !important;
User avatar
Senior Boarder


cron