Rank: Member
Joined: 1/28/2013(UTC) Posts: 77 Location: Midlothian, TX
|
I'm look for or trying to remember if it is possible to have the background change for each category selection.
If so how would i go about doing it?
thanks |
|
|
|
|
Rank: Member
Joined: 4/29/2010(UTC) Posts: 256
Thanks: 4 times Was thanked: 11 time(s) in 10 post(s)
|
Originally Posted by: dan @ HYAS I'm look for or trying to remember if it is possible to have the background change for each category selection.
If so how would i go about doing it?
thanks Dan I would personally do this through CSS. I would create a CSS class within your active themes style sheet with the same name as the category name. If the category name contained spaces etc. I would write a quick function to add hyphens or something similar to ensure its was a CSS valid name. Apply the above CSS class to the category template theme body/wrapper tag for example and the changes should take effect for each category. Those without a custom background should retain the default style. if you wish to make some more elaborate changes such as overriding some base styles you could always create a custom category css file and dynamically load the CSS file based upon the localcategory.name within the pageload method of the category template. Hopefully the above helps?
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.