Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How can I replace the tagline text with an image?

How can I replace the tagline text with an image?

Locked

Views: 2,117

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
7 Mar 2007, 2:49 PM
#1
rstevenson avatar

rstevenson

Totally Zenned

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

How can I replace the tagline text with an image?

Hi folk,

This should be easy, but that means I can't figure it out. :unsure:

In languages/english/header.php I have...

  define('HEADER_ALT_TEXT', '');
  define('HEADER_SALES_TEXT', 'my tagline text');
  define('HEADER_LOGO_WIDTH', '130');
  define('HEADER_LOGO_HEIGHT', '270');
  define('HEADER_LOGO_IMAGE', 'TDP_logo_med.jpg');

I should be able to simply make a GIF, put it in the same folder as my logo, change the tagline text to the name of the GIF (just like in the logo line above) and that'll work, right? Nope! I just got the alt text for the GIF.

I want to do this because I don't like the very generic look of the tagline font. It needs more pizzazz, but you can't depend on others having fancy fonts available on their machines, so I'll use the font I want here and make it a graphic instead.

Can someone clarify for me how to make my GIF appear? (Yes, I did search the forums, and was surprised not to find an answer.)

Thanks,

Rob

Breakfast: the most important donut of the day.

7 Mar 2007, 3:31 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,659
Plugin Contributions:
0

Re: How can I replace the tagline text with an image?

define('HEADER_SALES_TEXT', '<img src="images/my_gif.gif" />');

Or you could use the banner manger to place an image in the same area - note: don't use the banners directory - some ad blockers will block the.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

7 Mar 2007, 3:59 PM
#3
rstevenson avatar

rstevenson

Totally Zenned

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

Re: How can I replace the tagline text with an image?

Thanks Kim,

I had not used the right format for the image call. I'd left it plain, like the logo call below it. But I guess the difference is that Zen expects the logo to be a graphic and knows where it is, but the tagline is expected to be text, so the image call has to be more specific.

I'll [try to] remember that.

Rob

Breakfast: the most important donut of the day.