![]() |
Menu Title Images?
*Edit - I figured it out*
Hi everyone. I just recently had a custom x-cart developed and it was installed a couple days ago. Now I'm just learning how to edit templates. So far I've done a few small things like center the cart, change width size, change background colors, etc. What I want to do next is replace the menu titles with my own images. Instead of having a small image (dingbat) and a text version of "Services" or "Special" or "Help" etc., I would like to have one image in there that says what the title should be (no actual text). Hope that makes sense. Any idea how I can accomplish this?. Example code would be great! Thanks, Ryan |
So how did you do it?
|
the menu title uses a css sheet color for the background color
The text is then held in languages > english The only image you can change from default is the dialog bg box, the menus on the side are just regular html/css coding. If you want to lay down a background, thats a different story. You may want to stay away from images, search engines index text better just so you know. |
It just takes some figuring out. Kinda difficult to explain. You should use webmaster mode though. Here is something to start with.
This code is in the bottom of my menu_service.tpl. The image is the title image I want to use for my services. Code:
{ include file="menu.tpl" dingbats="services_1.jpg" menu_content=$smarty.capture.menu } You should also set the width/height in menu.tpl. With something like this Code:
<TD class=VertMenuTitle height=26>{$link_begin}[img]{$ImagesDir}/{$dingbats}[/img]{$link_end}</TD> The image is 150x20 in size. Ryan |
All times are GMT -8. The time now is 08:40 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.