| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Adding images to left and right bars | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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
__________________
Gold 4.2.0 CDSEOPRO v.1.3.1 Advanced MiniCart ezUpsell One Page Checkout Drug Test Kits |
|||||||
#2
|
|||||||
|
|||||||
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>
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
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?
__________________
Gold 4.2.0 CDSEOPRO v.1.3.1 Advanced MiniCart ezUpsell One Page Checkout Drug Test Kits |
|||||||
#4
|
|||||||
|
|||||||
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
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
Re: Adding images to left and right bars
Thanks for the help.
__________________
Gold 4.2.0 CDSEOPRO v.1.3.1 Advanced MiniCart ezUpsell One Page Checkout Drug Test Kits |
|||||||
|
|||
X-Cart forums © 2001-2020
|