| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
colors, styles, menu | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
colors, styles, menu
Hi,
I want change the color of Special and Help menus but it is linked (by css, VertMenuCatTitle, ...,...) with main menu so any changes occur both. How to change Special menu color (bg, font, separator...) ? Regards maximer
__________________
Version 4.0.18 |
|||||||
#2
|
|||||||
|
|||||||
Re: colors, styles, menu
you could create a new class in your css file, making the changes you want.
.VertMenuTitle2 { BACKGROUND-COLOR: #081589; COLOR: #ffffff; FONT-WEIGHT: bold; FONT-SIZE: 10px; } then change the class="VertMenuTitle2" in the files you want to change styles in.
__________________
X-cart Gold - 4.0.18 - 4.1.9 - 4.1.10 - 4.3.0 |
|||||||
#3
|
|||||||
|
|||||||
Re: colors, styles, menu
Quote:
Hi, so far I understand but I don't know where apply in code. look: in home.tpl I have "{include file="help.tpl"}" help.tpl looks {* $Id: help.tpl,v 1.19 2004/06/04 12:52:38 svowl Exp $ *} {capture name=menu} {if $usertype ne "C"}<A href="help.php?section=contactus&mode=update" class="VertMenuItems">{$lng.lbl_contact_us}</A><BR>{/if} {if $usertype eq "C"}<IMG src="{$ImagesDir}/customer_images/vert_menu_bullet.gif" width="27" height="16" border="0">{/if}<A href="help.php?section=business" class="VertMenuItems">{$lng.lbl_privacy_statement} </A><BR> {if $usertype eq "C"}<IMG src="{$ImagesDir}/customer_images/vert_menu_bullet.gif" width="27" height="16" border="0">{/if}<A href="help.php?section=conditions" class="VertMenuItems">{$lng.lbl_terms_n_conditions }</A><BR> {if $usertype eq "C" and $login eq ""}{if $usertype eq "C"}<IMG src="{$ImagesDir}/customer_images/vert_menu_bullet.gif" width="27" height="16" border="0">{/if}<A href="help.php?section=Password_Recovery" class="VertMenuItems">{$lng.lbl_recover_password}< /A><BR>{/if} {*{include file="pages_menu.tpl"}*} {/capture} { include file="menu.tpl" dingbats="dingbats_help.gif" menu_title=$lng.lbl_help menu_content=$smarty.capture.menu link_href="help.php" hide_bullets=1 hide_border="Y"} where to insert my new class ? maximer
__________________
Version 4.0.18 |
|||||||
#4
|
|||||||
|
|||||||
Re: colors, styles, menu
help.tpl uses menu.tpl to call the styles i believe so create a new class in your css file as the post above named .VertMenuTitle2, create a new file called menu2.tpl (a copy of menu.tpl) & change the the class="VertMenuTitle" to class="VertMenuTitle2"
Then in your help.tpl change the include file="menu.tpl" to include file="menu2.tpl"
__________________
X-cart Gold - 4.0.18 - 4.1.9 - 4.1.10 - 4.3.0 |
|||||||
#5
|
|||||||
|
|||||||
Re: colors, styles, menu
Quote:
Unfortunately nothing changes maximer
__________________
Version 4.0.18 |
|||||||
#6
|
|||||||
|
|||||||
Re: colors, styles, menu
Quote:
Probably problem exist here: menu2.tpl ... {if $usertype eq "C"} { include file="menu_customer.tpl" menu_title=$menu_title menu_content=$menu_content link_href=$link_href link_begin=$link_begin link_end=$link_end style=$style} {else} ..... so , should I create menu_customer2.tpl ? maximer
__________________
Version 4.0.18 |
|||||||
#7
|
|||||||
|
|||||||
Re: colors, styles, menu
You will need to change the class="VertMenuTitle" to class="VertMenuTitle2" in every tpl what you want to use your new style in, ive just shown what i would do in help.tpl so you will need to work around for other files in a similar manner.
also delete all the files in your templates_c folder to update any changes
__________________
X-cart Gold - 4.0.18 - 4.1.9 - 4.1.10 - 4.3.0 |
|||||||
|
|||
X-Cart forums © 2001-2020
|