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)
-   -   putting small gif to the left of each category listing (https://forum.x-cart.com/showthread.php?t=7605)

sherwood 05-16-2004 08:00 PM

putting small gif to the left of each category listing
 
Hi,

I have a small flower gif that I would like to place at the left of each link in the categories box. Does anyone know how and where I would go about doing this once I have the picture uploaded?????

Thank you!

BCSE 05-17-2004 04:55 AM

I haven't tested this so I'm not 100% sure, but go to categories.tpl (under skin1/customer)

Insert the image infront of
Quote:

<font class=CategoriesList>{ $categories[cat_num].category_name|escape }</font>



and
Quote:

<font class=CategoriesList>{ $subcategories[cat_num].category_name|escape }</font>


Do the 2nd one only if you want it to show up beside sub categories too.

I'd probably put the image in skin1/images and reference it like
[img]{$ImagesDir}/your_image.gif[/img]

HTH

Carrie

sherwood 05-17-2004 03:03 PM

worked great
 
The code for the categories worked great! Thank you very much! The code for the subcategories is not working but I am still playing around with it an will let you know.

BCSE 05-17-2004 03:37 PM

OH I think I know why about the subcategories. I think that's for when you have it checked to show sub categories instead of the "root" categories in the list on the left.

I believe you can add icons for the sub categories directly in the web admin interface when editing the categories. Try that, if it doesn't work then you'd need to edit:
skin1/customer/main/subcategories.tpl

Carrie


All times are GMT -8. The time now is 11:32 PM.

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