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

Adding link to welcome image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-13-2007, 03:24 PM
 
annasoaps annasoaps is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 39
 

Default Adding link to welcome image

I want to add a link to the welcome image that is on the index page (I am using the fashion mosaic skin, so maybe I should have written this in the add-ons, but I *think* it's a general storefront design question). I have figured out how to change the picture, and how to change the size. I edited the customer/main/welcome.tpl
And I also tried to add a "a href" in there but it didn't do a thing. I feel so silly for not figuring this one out, because it feels like it should be an easy thing! I just want a link to the product we display on the welcome image...

Any help is greatly appreciated.

Kind regards,
Anna

Ps. This is what the index page look like if you want to see the image in question: http://www.tvalskincare.com/xcart/home.php
__________________
X-cart Version 4.1.7
Reply With Quote
  #2  
Old 05-13-2007, 04:25 PM
 
balinor balinor is offline
 

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

Default Re: Adding link to welcome image

The Fashion Mosaic skin uses images for the welcome message (bad for SEO). I suggest re-coding it to use the image as a background and use actual text for the text. Then you can use regular html for the link.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-13-2007, 04:31 PM
 
annasoaps annasoaps is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 39
 

Default Re: Adding link to welcome image

Ah, I see! And what template do I do this in?
And thank you so much balinor! You are just amazing taking time to answer everyone and their grandmother's questions!!

/Anna
__________________
X-cart Version 4.1.7
Reply With Quote
  #4  
Old 05-13-2007, 04:34 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Adding link to welcome image

If you know what template is displaying the image, you should be able to insert an "a href" link --

for example, if the image is:

Quote:
<img src="{$ImagesDir}/image-123_300x200.jpg" alt="Logo" height="200" width="300" border="0" />

then the image with the link would be:

<a href="/path/to/destination.html"><img src="{$ImagesDir}/image-123_300x200.jpg" alt="Logo" height="200" width="300" border="0" /></a>

SO, for you, your image: /customer_images/welcome.gif becomes:

Code:
<a href="/xcart/product.php?productid=6&cat=23"><img src="{$ImagesDir}/customer_images/welcome.gif" alt="you should have some alt text here" height="338" width="537" border="0" /></a>

Hope this helps.

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #5  
Old 05-13-2007, 04:45 PM
 
annasoaps annasoaps is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 39
 

Default Re: Adding link to welcome image

Jeremy, thank you SO much!!
It worked perfectly!

I am an admirer of your site by the way! You've done a great job with it!!

Kind regards,
Anna

Edited to add: I'm still interested in learning how to make a search enging friendly message. Should I make a table with the image as background, with text and stuff and then copy that code into customer/main/welcome.tpl?
__________________
X-cart Version 4.1.7
Reply With Quote
  #6  
Old 05-13-2007, 04:58 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Adding link to welcome image

My pleasure. As Padraic suggests though, a large image without any "text" is SEO hostile. You are also using a VERY large image with lots of white space... yes, it's only 28k, but you could do this a little more efficient, especially for SEO. And it may be my tired eyes, but the white text on the "free shipping" area was difficult for me to read at first glance. Hope this helps.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #7  
Old 05-13-2007, 05:44 PM
 
annasoaps annasoaps is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 39
 

Default Re: Adding link to welcome image

It's not your eyes Jeremy, it *is* hard to read! I realized that my laptop makes all colors appear darker than they are, so that is something I will take care of soon (the webcart is not live yet)

I tried making a test table and pasted the code into customer/main/welcome.tpl and it looks like it will work! (just need to make it pretty )

Thanks to both of you! I didn't only get an answer to my question, but also help how to make it better (I did not know that search engines like text better than only pictures). You learn something new every day!

/Anna
__________________
X-cart Version 4.1.7
Reply With Quote
  #8  
Old 12-22-2009, 12:07 AM
 
shimmy shimmy is offline
 

Advanced Member
  
Join Date: Jun 2008
Posts: 41
 

Default Re: Adding link to welcome image

Would this method method work in in 4.3?
Despite the SEO risk I want to try something out, how would I go about making the logo into a link
__________________
Shimmy

www.hatsandheadscarves.com
Feedback welcome
shimmy@hatsandheadscarves.com
x-cart version 4.3
one page checkout & buy together mods

Reply With Quote
  #9  
Old 03-23-2010, 09:19 PM
 
shimmy shimmy is offline
 

Advanced Member
  
Join Date: Jun 2008
Posts: 41
 

Default Re: Adding link to welcome image

Quote:
Originally Posted by annasoaps
It's not your eyes Jeremy, it *is* hard to read! I realized that my laptop makes all colors appear darker than they are, so that is something I will take care of soon (the webcart is not live yet)

I tried making a test table and pasted the code into customer/main/welcome.tpl and it looks like it will work! (just need to make it pretty )

Thanks to both of you! I didn't only get an answer to my question, but also help how to make it better (I did not know that search engines like text better than only pictures). You learn something new every day!

/Anna

Newbie question, how would I go about creating the table i.e. what program would I create it in and what code would I have to insert.

For version 4.3
__________________
Shimmy

www.hatsandheadscarves.com
Feedback welcome
shimmy@hatsandheadscarves.com
x-cart version 4.3
one page checkout & buy together mods

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 05:20 PM.

   

 
X-Cart forums © 2001-2020