Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / How do I add a Link to my Home page to an Image?

How do I add a Link to my Home page to an Image?

Locked

Started by gaffettape on 5 Jul 2009, 10:53 AM · Views: 2,142

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
5 Jul 2009, 10:53 AM
#1
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Post #1 by gaffettape

I want to add a homepage link to the '***' image(header_bg.jpg) situated at the very top left of my site (remove spaces):
http:// 77.92.73.65 /store /zen/

Can anyone help?

Thankyou.

6 Jul 2009, 8:35 AM
#2
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Post #2 by gaffettape

Anyone?!

6 Jul 2009, 10:21 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #3 by kobra

If you are referring to the cufflink image that is a background image applied via css....
You would have to create a "Transparent" image map that you would place the map in a copy of tpl_header.php and design it so that it overlays the correct "hot spots"

Google image map

Zen-Venom Get Bitten

6 Jul 2009, 12:41 PM
#4
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Post #4 by gaffettape

Thanks for your reply Kobra, but no I dont want to add individual links to the each of the cufflink images (sorry if i didn't make this clear!!) I just want to add a link to the homepage to that whole image (*** + the cufflinks)

Thankyou :smile:

6 Jul 2009, 5:52 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #5 by kobra

make it all one image and name it logo.gif or gc_logo.gif

Zen-Venom Get Bitten

6 Jul 2009, 8:07 PM
#6
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Post #6 by gaffettape

I already have an Image called logo.gif (the blue and grey one - top right) surely I cant have two images called logo.gif can I??

Regards.

6 Jul 2009, 11:06 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #7 by kobra

I already have an Image called logo.gif (the blue and grey one - top right) surely I cant have two images called logo.gif can I??
I posted this
make it all one image

Zen-Venom Get Bitten

7 Jul 2009, 9:08 AM
#8
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Post #8 by gaffettape

Hi Kobra, I just want to say thanks for helping out me so far!! However I tried what you said and yes it worked to a certain extent as in their was a link to my home page, however it caused the GC logo to stay in one position and not float with the width of my page.

All I want to do is add the same code or whatever it is that adds a link to the gc_logo.gif to my image (i think this is called header_bg.jpg in my site)

Thankyou :smile:

7 Jul 2009, 5:04 PM
#9
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Post #9 by gaffettape

Anyone?? :smile:

7 Jul 2009, 5:06 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #10 by kobra

All I want to do is add the same code or whatever it is that adds a link to the gc_logo.gif to my image (i think this is called header_bg.jpg in my site)
Background images can not be linked....

Try replacing your gc_logo.gif with this image that is mostly transparent and 970px wide - - get it HERE

Zen-Venom Get Bitten

7 Jul 2009, 5:25 PM
#11
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Post #11 by gaffettape

Spot on, thanks alot Kobra :bigups:

10 Nov 2009, 1:37 AM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #13 by kobra

shows a technique on how to add a link to a background image.
One can also create an "Image Map" for multiple hot spots
As you were asking here I supposed that you were not aware of what it is and you also stated that you did not want multiple areas

Zen-Venom Get Bitten

8 Dec 2010, 1:48 PM
#14
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Post #14 by gaffettape

Hi,

I know this thread is over a year old, but just for anyone who is interested:

I finally managed to do this by adding a simple html table, with the two images + their relevant links inside it, into the /includes/templates/your_template/common/tpl_header.php file (use the file override system).

I hope this helps someone out in the future :smile: