Thread: Menu Background
View Single Post
  #4  
Old 11-02-2003, 04:18 PM
 
shasan shasan is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: Toronto
Posts: 74
 

Default

hmm..

I think the problem is in menu.tpl at least in 3.4.2

The code is like this:

Code:
<TR> {if $link_href} <TD class=VertMenuTitle height=26 valign=center width=80%><a href="{$link_href}"> HERE's YOUR PROBLEM -----> <font class=VertMenuTitle>{$menu_title} </font></a></TD> {else} <TD class=VertMenuTitle height=26 valign=center width=80%><font class=VertMenuBoxNewsTitle>{$menu_title}</font></TD> {/if} </TR>

It's because the font class is also VertMenuTitle. If you take that class attribute out, the problem should go away.

<ADDED>
I just tried that solution and changed the class to VertMenuNewsBox but since it is linked, the link styles take precedence, so my category title looks like the rest of my links.

Soooo, one way to do this would be to duplicate the VertMenuTitle style in your stylesheet and call it VertMenuTitle2 or something, except don't give it a background image, and then change the code to read like this:

Code:
<TR> {if $link_href} <TD class=VertMenuTitle height=26 valign=center width=80%><font class=VertMenuTitle2>{$menu_title}</font></TD> {else} <TD class=VertMenuTitle height=26 valign=center width=80%><font class=VertMenuBoxNewsTitle>{$menu_title}</font></TD> {/if} </TR>

</added>

Experiment with that, I'm sure that's the problem. It happens to me too, but I don't link the menu headings, so I don't go through that particular branch EXCEPT for in 'help.tpl' which for some reason doesn't include that IF statement.

Go figure.

Anyways, hope that helps and I hope I haven't confused the issue.
__________________
X-Cart 3.4.2 - Processor: Dual Hamsters, running on tricked out 21\" version of Hamster Wheel. (tireless little buggers)

No hamsters were harmed during the making of this sig. Several were seriously offended.
Reply With Quote