| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Category tables ? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Category tables ?
Hi Guys,
With the menu items on the left side? Is it possible to have different background for each menu item. Like Login = blue background Category = red background Help = yellow background I don't really know what section to edit since the CSS file only has VertMenuBox and when you change that background it will change the whole thing. Thanks again.
__________________
vg xcart gold 3.5.x rookie driver |
|||||||
#2
|
|||||||
|
|||||||
Since each menu uses the same style, we will need to create seperate styles for each menu. Let's use the Categories menu as an example:
1. In your skin1.css file, create a duplicate for each of the menu styles. Vertmenubox-categories for example. Set the background by adding this to the style: Code:
2. Click on edit templates, and scroll down to where it says new file. Create a new file called menu-categories.tpl. Copy the contents of the menu.tpl file into this file. Change the style names to correspond to the new style names you just created. 3. In customer/categories.tpl, scroll down to the bottom of the screen and replace this: Code:
with this: Code:
You will need to repeat this process for each of the menus you want to change. Have fun!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
thanks!
your the best
__________________
vg xcart gold 3.5.x rookie driver |
|||||||
#4
|
|||||||||
|
|||||||||
You can use Smarty "Cycle" function in menu.tpl, this makes it easy to alternate between two or more styles.
Just replace (menu.tpl): Code:
Code:
Then set up new styles definition in skin1.css: Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|