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)
-   -   Adding Images to vert menu header boxes (https://forum.x-cart.com/showthread.php?t=3034)

Chill-Tek 06-05-2003 02:53 AM

Adding Images to vert menu header boxes
 
I want to add images as headers in place of the text in the vertical menu header boxes (Category, Best Sellers, Your Cart, News, Authentication, Help etc). I am using the current version of XCart. Any help greatly appreciated.

shan 06-05-2003 04:18 AM

check, menu.tpl

Chill-Tek 06-05-2003 07:56 AM

I know NO PHP at all so please could someone direct me to what part of the code i have to edit. Thanks for the help shan.

Krebs 06-18-2003 10:03 AM

I've seen this q asked before with no answer other than what file.

Can someone please elaborate?

Krebs 06-18-2003 06:00 PM

Okies, I've mastered the most part of this. Here is a copy of my menu.tpl if anyone needs something to start with. But, I'll warn you - for some reason some of my menus aren't aligned correctly in the right hand side for some reason - so if anyone can help me with that I'd appreciate it greatly ;-)

Also, if you use this menu.tpl for a start, don't forget to go into each .tpl (ex. help.tpl) to change the image for the dingbat to your own and config the size as well if needed. And you may need to go into the home.tpl to change some sizes there if your text overlaps to the edge of your background image.

Code:

<TABLE border=0 cellPadding=0 cellSpacing=0 width="159">
<TR>
<TD class=VertMenuTitle height=26>{$link_begin}[img]{$ImagesDir}/{$dingbats}[/img]{$link_end}</TD>
{if $link_href}
<TD class=VertMenuTitle height=26 width=129 background="{$ImagesDir}/menu_1_b.gif"><font class=VertMenuTitle>{$menu_title}</font></TD>
{else}
<TD class=VertMenuTitle height=26 width=129 background="{$ImagesDir}/menu_1_b.gif"><font class=VertMenuBoxNewsTitle>{$menu_title}</font></TD>
{/if}
</TR>
<TR>
<TD colspan="2" class=VertMenuBox background="{$ImagesDir}/left_nav_bg.gif">
<p style="margin-left: 18; margin-right: 16">{$menu_content}
</TD></TR>
<TR>
<TD colspan="2" class=VertMenuBox background="{$ImagesDir}/index_55.gif" width="159" height="24" border=0></TD></TR>
</TABLE>


Hugs*
CallieJo :wink:

Sweetness 06-19-2003 09:15 AM

Anyone have a solution for alignment problems?

Next to each dingbat img there is a large empty space before the headings.
I can't get the dingbat to touch the heading.


All times are GMT -8. The time now is 01:17 PM.

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