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)
-   -   colors, styles, menu (https://forum.x-cart.com/showthread.php?t=26243)

maximer 10-30-2006 01:12 PM

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

neroag 10-30-2006 10:46 PM

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.

maximer 10-30-2006 10:56 PM

Re: colors, styles, menu
 
Quote:

Originally Posted by neroag
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.


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

neroag 10-30-2006 11:13 PM

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"

maximer 10-31-2006 02:37 AM

Re: colors, styles, menu
 
Quote:

Originally Posted by neroag
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"


Unfortunately nothing changes :cry:

maximer

maximer 10-31-2006 02:55 AM

Re: colors, styles, menu
 
Quote:

Originally Posted by maximer
Unfortunately nothing changes :cry:

maximer


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

neroag 10-31-2006 03:29 AM

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 ;-)


All times are GMT -8. The time now is 09:10 PM.

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