Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Adding images to left and right bars

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-23-2009, 02:17 PM
 
Tim CDN Tim CDN is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 48
 

Default 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
Reply With Quote
  #2  
Old 03-23-2009, 02:26 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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
Reply With Quote
  #3  
Old 03-23-2009, 02:54 PM
 
Tim CDN Tim CDN is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 48
 

Default 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
Reply With Quote
  #4  
Old 03-23-2009, 03:09 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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
Reply With Quote
  #5  
Old 03-23-2009, 03:30 PM
 
Tim CDN Tim CDN is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 48
 

Default 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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:28 AM.

   

 
X-Cart forums © 2001-2020