Forums / Templates, Stylesheets, Page Layout / how to add an image *between* header text and above content??

how to add an image *between* header text and above content??

Started by tlyczko on 2 Mar 2013, 7:40 PM · Views: 827

Results 1 to 3 of 3
2 Mar 2013, 7:40 PM
#1
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

how to add an image *between* header text and above content??

This question is notabout header image, since it's a single image to be placed in the header which will later be replaced with an image slider...

I want to place images on http://www.bristolbayflies.com below 'Alaskan Flies...' and above 'What's New'
I do not want the header text superimposed upon the image.

In other words:
Bristol Bay Flies
Alaskan Flies...

IMAGE by itself

MAIN CONTENT CONTAINER /wrapper WITH WHAT'S NEW ETC.

For now an absolute link will do, e.g. http://www.bristolbayflies.com/images/foo.jpg

I need php code that will cause the browser to display the image...
I tried echo 'http://...' in tpl_header.php but that writes out the text per se, I need the browser to render the image.

Thank you, Tom

2 Mar 2013, 8:44 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

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

Re: how to add an image *between* header text and above content??

tlyczko:

This question is notabout header image, since it's a single image to be placed in the header which will later be replaced with an image slider...

I want to place images on http://www.bristolbayflies.com below 'Alaskan Flies...' and above 'What's New'
I do not want the header text superimposed upon the image.

In other words:
Bristol Bay Flies
Alaskan Flies...

IMAGE by itself

MAIN CONTENT CONTAINER /wrapper WITH WHAT'S NEW ETC.

For now an absolute link will do, e.g. http://www.bristolbayflies.com/images/foo.jpg

I need php code that will cause the browser to display the image...
I tried echo 'http://...' in tpl_header.php but that writes out the text per se, I need the browser to render the image.

Thank you, Tom

You seem to have "hacked out" the header image element from tpl_header.php and as we can't see what you've done we can't comment on that aspect.

But you could try to add the image into the tagline define in /includes/languages/english/YOUR-TEMPLATE/header.php

define('HEADER_SALES_TEXT', '<a href="http://bristolbayflies.com/index.php?main_page=index" alt="Bristol Bay Flies 2013 Retail Catalog" title="Bristol Bay Flies 2013 Retail Catalog"><h1>Bristol Bay Flies 2013 Retail Catalog</h1><br /><img src="http://PATH-TO-YOUR-IMAGE" />< /br><h2>Alaskan Flies Are Our Specialty</h2></a>');

You may or may not need the </ br> tags.

20 years a Zencart User

2 Mar 2013, 8:54 PM
#3
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

Re: how to add an image *between* header text and above content??

NEVER MIND!!
Brain hiccup. :)
I forgot to use img src etc.
Once I did this things worked properly.
Thank you, Tom