Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
Thread Tools Search this Thread Display Modes
Old June 16th, 2011, 09:01 AM
charlesk charlesk is offline
Join Date: Mar 2011
Posts: 43
Default custom css for individual subcategories


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
Old June 16th, 2011, 10:24 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
Join Date: Feb 2008
Posts: 16,902


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: /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:

#id592507 {background: blue; color: white}
#id592508 {background: pink; color: black}
Here is the result:

That's it!


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding individual products quickly williamsmark Questions 1 March 13th, 2011 08:43 AM

All times are GMT -5. The time now is 12:57 PM.

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