![]() |
add icons netx to category names
I am not using fancy categories module.
I would like to add a "button" type image next to each listing in my categories menu - just to Pretty it up a little. Is this possible and where do I start? |
Re: add icons netx to category names
customer/categories.tpl
|
Re: add icons next to category names
Thanks so something like
<img src ="Button " height="10" width="10" img src="path to my file" cat={$categories[cat_num].categoryid} Not sure where to plonk it in the code? |
Re: add icons netx to category names
You don't need to put anything about the cat in there, just make it a simple image tag:
<img src="{$ImagesDir}/image.jpg" width="10" height="10"> Put it right before this: <FONT class="CategoriesList"> |
Re: add icons netx to category names
This is great I'm learning very quickly. :)
The image sits real close to the category name. How do I put a space between the button image and the category text? I appreciate your time. Zane |
Re: add icons netx to category names
add a padding value to it:
<img src="{$ImagesDir}/image.jpg" width="10" height="10" style="padding-right: 10px;"> |
Re: add icons netx to category names
Thanks. It doesnt seem to have any effect, this is what I have.
<img src="{$ImagesDir}/menu_ball.gif" width="16" height="16" style="padding-right: 40px;"> ?? |
Re: add icons netx to category names
What if I wanted a different icon for each category?
|
Re: add icons netx to category names
That is an entirely different bit of code I'm afraid :(
|
Re: add icons netx to category names
A little clue?
Code:
{if} {$category=xxxxx} <img src=xxxx> {else} |
All times are GMT -8. The time now is 04:00 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.