Color Code Categories
13 years 2 months ago #114256
by sambob
Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'
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?)
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.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 2 months ago #114259
by Mohamed Thelji
Replied by Mohamed Thelji on topic Color Code Categories
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
.
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.
13 years 2 months ago #114262
by sambob
Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'
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)
So, for example, all these categories will display with a blue background, but the other categories and subs will be their own color.
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)
- Rare Earth - Blocks
- Rare Earth - Cylinders
- Rare Earth - Discs
- Rare Earth - Rings
- 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.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 2 months ago #114273
by Mohamed Thelji
Replied by Mohamed Thelji on topic Color Code Categories
Ok, regarding the category background color, you can use some CSS code like :
And for the text color you can use :
Code:
.span12.hikashop_category.hikashop_category_column_1.hikashop_category_row_1 td {
background-color: blue !important;
color: white !important;
}
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.
13 years 1 month ago #116905
by sambob
Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'
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.
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.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 1 month ago #116918
by Mohamed Thelji
Replied by Mohamed Thelji on topic Color Code Categories
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
.
Thanks
Please Log in or Create an account to join the conversation.
13 years 1 month ago #116954
by sambob
Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'
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/
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.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 1 month ago #116957
by Mohamed Thelji
Replied by Mohamed Thelji on topic Color Code Categories
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.239 seconds