Datafeedr Support Forums

Datafeedr Support Forums (http://www.datafeedr.com/forums/index.php)
-   Questions (http://www.datafeedr.com/forums/forumdisplay.php?f=67)
-   -   custom css for individual subcategories (http://www.datafeedr.com/forums/showthread.php?t=4671)

charlesk June 16th, 2011 09:01 AM

custom css for individual subcategories
 
Hi,

is it possible to create custom css for individual subcategories?
What I mean is that when looking through the main category view the user will be able to differentiate products from one subcategory from the products from the second subcategory.

Kind regards
Charles

Eric June 16th, 2011 10:24 AM

Hi

Yes, this is possible.

For starters, you need to add the category ID to the <div> which contains the "bdr" class.

Here's what the original Product list module looked like on the CATEGORY PAGE:



But I added this: id="id<?php echo $product->cat_id; ?>" so it looks like this:



Now you need to get those category IDs. Read about that here: http://www.datafeedr.com/forums/showthread.php?t=4656

Then add corresponding CSS to your Custom CSS area: The Factory > Your Store > Store menu > Custom CSS. My category IDs were 592507 and 592508 so I added this CSS:

Code:

#id592507 {background: blue; color: white}
#id592508 {background: pink; color: black}

Here is the result:



That's it!

Eric


All times are GMT -5. The time now is 06:56 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.