X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Change background colour - only in certain menu boxes (https://forum.x-cart.com/showthread.php?t=36772)

zebu 01-15-2008 05:46 PM

Change background colour - only in certain menu boxes
 
I would like to change the background colour in some of my menu boxes.

I see I can change teh colour code in skin1.css (which changes all the menu boxes)

I am presuming I need to add a background defintaion (style) into the code for each tpl file that creates the menu box?

Not being very literate in using style sheets, what code whould I need to put in the TPL files(if thats where I put it?)

Any pointiers greatly appreciated.

Cheers Zane

balinor 01-16-2008 04:27 AM

Re: Change background colour - only in certain menu boxes
 
You'll need to create a new menu.tpl for each different box style you want, as menu.tpl calls the styles that control the color. Simply create duplicates of menu.tpl (menu1.tpl, menu2.tpl, etc), call new styles from each (VertMenuBox1, VertmenuBox2, etc) and then change the call from each menu you want to change So if you wanted to change the categories menu for example, you'd open up customer/categories.tpl and change menu.tpl to menu2.tpl. Make sense?

zebu 01-22-2008 12:01 AM

Re: Change background colour - only in certain menu boxes
 
Thanks Balinor,

Brilliant explanation! I'll dabble with it now ;)

Cheers


All times are GMT -8. The time now is 03:24 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.