• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

dan @ HYAS
#1 Posted : Thursday, February 7, 2013 5:20:35 PM(UTC)
dan @ HYAS

Rank: Member

Joined: 1/28/2013(UTC)
Posts: 77
United States
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
Steve95
#2 Posted : Friday, February 8, 2013 7:35:40 AM(UTC)
Steve95

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 Go to Quoted Post
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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012