Forums / General Questions / Change,Sales message goes here, with image

Change,Sales message goes here, with image

Views: 602

Results 1 to 6 of 6
11 Mar 2012, 8:39 PM
#1
maynards avatar

maynards

Zen Follower

Join Date:
Feb 2010
Location:
Minnesota
Posts:
392
Plugin Contributions:
0

Change,Sales message goes here, with image

I know where to change: Sales message goes here. In header.php

My question is, instead of a message can a image be inserted there?

11 Mar 2012, 11:03 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Change,Sales message goes here, with image

You could probably just insert a standard HTML call for an image:

<img src="images/my_image.jpg" alt="This is my image" title="The title of my image" />

You may need to embed HEIGHT and WIDTH parameters if you need to force the image into a given area... or just size your image to fit.

20 years a Zencart User

11 Mar 2012, 11:36 PM
#3
maynards avatar

maynards

Zen Follower

Join Date:
Feb 2010
Location:
Minnesota
Posts:
392
Plugin Contributions:
0

Re: Change,Sales message goes here, with image

Thanks schoolboy for trying to help
Are you saying insert the code in:
define('HEADER_SALES_TEXT', '<img src="images/my_image.jpg" alt="This is my image" title="The title of my image" />');

If so, it does not seam to work.

11 Mar 2012, 11:44 PM
#4
maynards avatar

maynards

Zen Follower

Join Date:
Feb 2010
Location:
Minnesota
Posts:
392
Plugin Contributions:
0

Re: Change,Sales message goes here, with image

Maybe it does work after all.
What shows up is the words in red
define('HEADER_SALES_TEXT', '<img src="images/my_image.jpg" alt="This is my image" title="The title of my image" />');

I am confused on what to insert in the red highlight words.

12 Mar 2012, 12:46 AM
#5
maynards avatar

maynards

Zen Follower

Join Date:
Feb 2010
Location:
Minnesota
Posts:
392
Plugin Contributions:
0

Re: Change,Sales message goes here, with image

Found the problem
I did not have the correct path name to the image.

12 Mar 2012, 7:54 AM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Change,Sales message goes here, with image

ALT and TITLE text should describe what the image is about. People who are blind cannot see the image, and they will probably have text reader software on their computers, where a "voice" will tell them what the image is. This software reads out the text contained in the ALT or TITLE tags.

20 years a Zencart User