Forums / Templates, Stylesheets, Page Layout / Can I replace "larger image" text with a .gif image button?

Can I replace "larger image" text with a .gif image button?

Locked

Views: 3,196

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
2 Mar 2009, 7:13 PM
#1
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Can I replace "larger image" text with a .gif image button?

Does anyone know if there's a way to replace the "larger image" text under the additional images in product listings to display a .gif button instead of text?

2 Mar 2009, 7:57 PM
#2
marg avatar

marg

Totally Zenned

Join Date:
Mar 2004
Posts:
642
Plugin Contributions:
0

Re: Can I replace "larger image" text with a .gif image button?

includes/languages/english.php

There's a line:
define('TEXT_CLICK_TO_ENLARGE', 'larger image');

Replace with an image - but this will also change the "larger image" text under the main image.

2 Mar 2009, 8:41 PM
#3
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Can I replace "larger image" text with a .gif image button?

thanks dude, I was actually in the middle of doing that when you replied, now that it's done I'm not sure if I preferred it the way it was :-)

How do I remove the border from around the main image now as it's carried through and put the border around my new button.

2 Mar 2009, 9:38 PM
#4
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Can I replace "larger image" text with a .gif image button?

ok, so I've replaced the text with a button and it looks much better now.... however, does anyone know how I stop the border from the main image wrapping itself around the button underneath the image?

22 Oct 2009, 8:34 PM
#5
cla74 avatar

cla74

New Zenner

Join Date:
May 2008
Location:
Italy
Posts:
83
Plugin Contributions:
0

Re: Can I replace "larger image" text with a .gif image button?

limelites:

ok, so I've replaced the text with a button and it looks much better now.... however, does anyone know how I stop the border from the main image wrapping itself around the button underneath the image?

hi
can you tell me how did you put image instead larger image text?
ty

www.egame74.com console accessories

23 Oct 2009, 12:41 PM
#6
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Can I replace "larger image" text with a .gif image button?

The method was mentioned briefly above. Here are the exact steps to follow.

  1. create an image called, for example, enlarge.gif
  2. upload this image into your main images folder
  3. open includes/languages/english.php in your editor
  4. find the line...
    define('TEXT_CLICK_TO_ENLARGE', 'larger image');
  5. change it to read...
    define('TEXT_CLICK_TO_ENLARGE', '<img src="images/enlarge.gif" alt="Click to enlarge">');

You should now see your image instead of the text.

Don't forget to make your changes to english.php in your override folders, not in the original location, to avoid having problems when you upgrade the site.

Rob

Breakfast: the most important donut of the day.

23 Oct 2009, 1:35 PM
#7
cla74 avatar

cla74

New Zenner

Join Date:
May 2008
Location:
Italy
Posts:
83
Plugin Contributions:
0

Re: Can I replace "larger image" text with a .gif image button?

rstevenson:

The method was mentioned briefly above. Here are the exact steps to follow.

  1. create an image called, for example, enlarge.gif
  2. upload this image into your main images folder
  3. open includes/languages/english.php in your editor
  4. find the line...
    define('TEXT_CLICK_TO_ENLARGE', 'larger image');
  5. change it to read...
    define('TEXT_CLICK_TO_ENLARGE', '<img src="images/enlarge.gif" alt="Click to enlarge">');

You should now see your image instead of the text.

Don't forget to make your changes to english.php in your override folders, not in the original location, to avoid having problems when you upgrade the site.

Rob

ty
but it comes word only instead picture!!

www.egame74.com console accessories

24 Oct 2009, 1:03 AM
#8
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Can I replace "larger image" text with a .gif image button?

In the site in your signature I see an image. If that isn't the site you're having the issue with, then post a link to the other site and maybe I can help.

Rob

Breakfast: the most important donut of the day.

24 Oct 2009, 9:11 AM
#9
cla74 avatar

cla74

New Zenner

Join Date:
May 2008
Location:
Italy
Posts:
83
Plugin Contributions:
0

Re: Can I replace "larger image" text with a .gif image button?

rstevenson:

In the site in your signature I see an image. If that isn't the site you're having the issue with, then post a link to the other site and maybe I can help.

Rob

Solved
it must be done like you say.
I have made a mistake writing the img code
TY very much

www.egame74.com console accessories