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)
-   -   How to disable the .css file for an individual template??? (https://forum.x-cart.com/showthread.php?t=12825)

balinor 03-15-2005 12:56 PM

Hmmm....what template are you calling this template from? Head.tpl? This SHOULD work...I use it all the time for horizontal menus. Post your template that is calling the head_nav.tpl.....

Dowhatchalike 03-15-2005 01:00 PM

see home.tpl

Code:

{* $Id: home.tpl,v 1.54.2.1 2004/11/19 08:26:24 mclap Exp $ *}
{ config_load file="$skin_config" }
<html>
<head>
<title>{$lng.txt_site_title}
{if $main eq "catalog"}
        {if $location eq ""}  {$lng.txt_subtitle_home}
        {else}
        {strip}
        {section name=position loop=$location start=0 }
        {if %position.last% eq "true"} - {$location[position].0|escape}{/if}
        {/section}
        {/strip}
        {/if}
{elseif $main eq "product"}
        {if $product.product ne ''} - {$product.product}{/if}
{elseif $main eq "help"}
{$lng.txt_subtitle_help}
{elseif $main eq "cart"}
{$lng.txt_subtitle_cart}
{elseif $main eq "checkout"}
{$lng.txt_subtitle_checkout}
{elseif $main eq "order_message"}
{$lng.txt_subtitle_thankyou}
{elseif $main eq "wishlist"}
{$lng.txt_subtitle_wishlist}
{elseif $main eq "giftcert"}
{$lng.txt_subtitle_giftcerts}
{/if}
</title>
{ include file="meta.tpl" }
<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">
</head>

<body LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
{ include file="rectangle_top.tpl" }
{ include file="head.tpl" }
{ include file="head_nav.tpl" }

<table border=0 width="100%" cellpadding=0 cellspacing=0 align="center">
<tr>
<td width=6></td>

<td width=150 style="border: 3px solid #FF3300" bgcolor = "CCCCCC" valign=top>
{if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{ include file="customer/categories.tpl" }


{/if}
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"}
{ include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}

<!--
{include file="customer/special.tpl"}
{ include file="help.tpl" }
-->
</td>



<td width=20></td>
<td valign=top>


<!--
[img]{$ImagesDir}/slogan.gif[/img]

</p>
-->

{include file="customer/home_main.tpl"}


</td>
<td width=20></td>
<td width=150 valign=top>

<!--
{ include file="customer/menu_cart.tpl" }


{if $login eq "" }
{ include file="auth.tpl" }


{else}
{ include file="authbox.tpl" }


{/if}
{ include file="news.tpl" }
-->
{if $active_modules.Interneka ne ""}
{ include file="modules/Interneka/menu_interneka.tpl" }
{/if}


{ include file="poweredby.tpl" }


</td>
<td width=6></td>
</tr>
</table>
{ include file="rectangle_bottom.tpl" }
</body>
</html>


balinor 03-15-2005 01:03 PM

Ahhhh....I see the problem! In your skin1.css file you have the style wrong...you need a period in front of TopBar! Should read like this:

Code:

.TopBar { FONT-FAMILY: Arial;
        COLOR: #001683; FONT-SIZE: 14px;
BACKGROUND: URL(images/barbg.gif); font-weight: bold; text-align: center; font-style: italic;
}


My bad! :(

Dowhatchalike 03-15-2005 01:09 PM

HAHA , stinking period!

I think I tried that earlier but I wasnt calling it correctly so when I didnt see it change, I put it back.

I am new to .css files so thanks for the guidance! If you take a look now, it is kind of how I want it, looks like the bottom got chopped somehow, but I will try and get the whole bar built and let you know!

thanks a ton!

balinor 03-15-2005 01:11 PM

Yea, go back to this now, it will look MUCH better:

<td class="TopBar" width="109">Home</td>

Dowhatchalike 03-15-2005 01:18 PM

Awesome!

The whole bar showed up now so I will just add the otehr buttons, formatting, and hyperlinks.


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

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