| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Changing colours in categories.tpl | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Changing colours in categories.tpl
Hi all,
My client wants each category name to have a different colour, as her logo is also multicoloured. I've traced the file that generates the list to categories.tpl, but simply taking out the font/class statements doesn't work as the list is generated on the fly rather than being html. I know I can change this easily in the static html pages, but can anyone come up with a way to make each category heading in the category list have a different colour in the dynamic pages? Cheers Dave
__________________
Quiet please... I'm trying to unscramble my brian. http://lizzybug.co.uk (live, minor mods, 4.0.15) EZCheckout/EZUpsell (Must have mods!) Firetank's Featured Products Manager, and loads of little mods off the forum (thanks all!) http://www.jellybeangifts.co.uk (live, 4.0.18 ) Fancy Cats + custom colour mod |
|||||||
#2
|
|||||||
|
|||||||
This could be done as follows:
code for categories.tpl: Code:
This will then say for each category item it will look for a style in the style sheet of CategoriesList123 or whatever the category id is. Then simply create a style sheet class for each category id as follows: .CategoriesList1{ FONT-SIZE: 12px; COLOR: #330000; } .CategoriesList2{ FONT-SIZE: 12px; COLOR: #FF9900; } .CategoriesList3{ FONT-SIZE: 12px; COLOR: #FF3300; } etc etc etc ............. hth
__________________
ex x-cart guru |
|||||||
#3
|
|||||||
|
|||||||
Thanks Funkydunk
I'll give it a go later tonight Cheers Dave
__________________
Quiet please... I'm trying to unscramble my brian. http://lizzybug.co.uk (live, minor mods, 4.0.15) EZCheckout/EZUpsell (Must have mods!) Firetank's Featured Products Manager, and loads of little mods off the forum (thanks all!) http://www.jellybeangifts.co.uk (live, 4.0.18 ) Fancy Cats + custom colour mod |
|||||||
#4
|
|||||||
|
|||||||
Hi Funkydunk
I've done the mods as you suggested, but it doesn't show the colours. I know it is picking up the right details, because if I change the font-size on one of the categories for example it shows the changes. This is copied from the page source code Quote:
It seems that the link elements in the CSS file are overring the colours, but I've no idea how to stop this happening. Do you have any further ideas? Cheers Dave
__________________
Quiet please... I'm trying to unscramble my brian. http://lizzybug.co.uk (live, minor mods, 4.0.15) EZCheckout/EZUpsell (Must have mods!) Firetank's Featured Products Manager, and loads of little mods off the forum (thanks all!) http://www.jellybeangifts.co.uk (live, 4.0.18 ) Fancy Cats + custom colour mod |
|||||||
#5
|
|||||||
|
|||||||
Sorry - I corrected my post because of that problem.
__________________
ex x-cart guru |
|||||||
#6
|
|||||||
|
|||||||
Perfect!
Thanks Dave
__________________
Quiet please... I'm trying to unscramble my brian. http://lizzybug.co.uk (live, minor mods, 4.0.15) EZCheckout/EZUpsell (Must have mods!) Firetank's Featured Products Manager, and loads of little mods off the forum (thanks all!) http://www.jellybeangifts.co.uk (live, 4.0.18 ) Fancy Cats + custom colour mod |
|||||||
#7
|
|||||||
|
|||||||
Nice one FunkyDunk!
If possible please move to the "Custom Mods" area of the forum. That way it'll be an easy find in the future. Thanks, Glen
__________________
Never understimate stupidity. -------- X-Cart Version: 3.5.2 Hosting:mind-in-design.net Configuration: Virtual Dedicated Server || Intel Pentium 4 2.4 GHZ CPU || 1024MB PC2100 DDR RAM || Linux || PHP 4.3.2 || MySQL server 4.0.14 |
|||||||
|
|||
X-Cart forums © 2001-2020
|