Skip to main content

Color Code Categories

More
13 years 2 months ago #114256 by sambob
Color Code Categories was created by sambob
Hi,

I am trying to figure out a way to custom display each category with regard to color/css for say div and/or table display.

i.e.
Category A - Blue Background, White Text
Category B - Orange Background, White text.

Is there a way to do this (add class?)

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #114259 by Mohamed Thelji
Hi,

Can you send me a link to the page to edit for testing purpose and show me a screenshot of what you exactly want to do ? Then I'll probably be able to answer you :).

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #114262 by sambob
Replied by sambob on topic Color Code Categories
LOL.. sorry about that.

Here is the page.
magnet.com.au/

The trick is that I also want the sub-categories (as seen on the right menu) to display the same color/style as the parent:
Rare Earth Magnets (Neodymium)
  1. Rare Earth - Blocks
  2. Rare Earth - Cylinders
  3. Rare Earth - Discs
  4. Rare Earth - Rings
  5. Rare Earth - Holding Magnets (Pots)

So, for example, all these categories will display with a blue background, but the other categories and subs will be their own color.

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #114273 by Mohamed Thelji
Ok, regarding the category background color, you can use some CSS code like :
Code:
.span12.hikashop_category.hikashop_category_column_1.hikashop_category_row_1 td { background-color: blue !important; color: white !important; }
And for the text color you can use :
Code:
.span12.hikashop_category.hikashop_category_column_1.hikashop_category_row_1 td .hikashop_category_desc { color: black; color: white !important; }

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #116905 by sambob
Replied by sambob on topic Color Code Categories
Thanks Mohamed,

Perfect! That works.

And to do it for the sub-category divs layout and the product tables was to utilise custom templates via the menu.
(will show once site live and not on dev server.)

Thanks again.

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #116918 by Mohamed Thelji
What do you mean by the "sub-categories" ? can you do a screenshots of where you also want this CSS code to be applied ?
Thanks :).

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #116954 by sambob
Replied by sambob on topic Color Code Categories
Hi Mohamed ,

Already done the custom and was just mentioning it (not looking for it to be done).

You can see it here: staging1.magnet.com.au/

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #116957 by Mohamed Thelji
Well done :).
The following user(s) said Thank You: sambob

Please Log in or Create an account to join the conversation.

Time to create page: 0.210 seconds
Powered by Kunena Forum