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 left and right bars (https://forum.x-cart.com/showthread.php?t=46481)

Tim CDN 03-23-2009 02:17 PM

Adding images to left and right bars
 
Hi all

I have been successful in adding images to the left and right bars by editing home.tpl and adding this line of code.

<img src="{$ImagesDir}/banners/test_image.gif" alt="" / >

I am not a programmer and want to know if this is correct. Should I be creating a table?

I recently added a link from one of the images and it turned the "Your Cart" box header into the linked page as well??????

I used this code:

<a href="http://test_site.com/" target = "_blank"><img src="{$ImagesDir}/banners/test_image.gif" alt="" />

Help if you can.

Thanks

balinor 03-23-2009 02:26 PM

Re: Adding images to left and right bars
 
You forgot the closing </a>

<a href="http://test_site.com/" target = "_blank"><img src="{$ImagesDir}/banners/test_image.gif" alt="" /></a>

Tim CDN 03-23-2009 02:54 PM

Re: Adding images to left and right bars
 
Ahhhh, nice catch, thanks.

So is it okay to add images without tables etc. I have read a lot about "clean" programming - but I don't know what that is exactly.
Would this be considered clean?

balinor 03-23-2009 03:09 PM

Re: Adding images to left and right bars
 
Tables are used for one thing - tabular data. You shouldn't use them anywhere else in your site - particularly the 4.2 branch since it is css-based. I know it is tough to get out of the table mindset if that is what you are used to, but you do not need to use them :)

Tim CDN 03-23-2009 03:30 PM

Re: Adding images to left and right bars
 
Thanks for the help.


All times are GMT -8. The time now is 09:41 PM.

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