Forums / Templates, Stylesheets, Page Layout / 'Contact us' in header

'Contact us' in header

Locked

Views: 1,052

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
3 May 2007, 7:11 AM
#1
gez avatar

gez

New Zenner

Join Date:
Mar 2007
Location:
UK
Posts:
2
Plugin Contributions:
0

'Contact us' in header

I'm a zencart novice, but learning all the time.

I need to place a link to 'contact us' in the header bar alongside 'home' and 'login'. Is there an admin setting to place the define pages link in this position, or does this need a php code change?

Thanks for any advice.

Gez

3 May 2007, 8:57 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: 'Contact us' in header

You can copy the link code in /includes/modules/sideboxes/information.php:

<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>
```into the place you want it in /includes/templates/your_template/common/tpl_header.php. 
Look for the <!--bof navigation display--> at the beginning of the section.
3 May 2007, 9:01 AM
#3
gez avatar

gez

New Zenner

Join Date:
Mar 2007
Location:
UK
Posts:
2
Plugin Contributions:
0

Re: 'Contact us' in header

Thanks Glenn
I suspected a code change was needed - I'll give this a go.
Gez

4 May 2007, 7:19 PM
#4
techbot avatar

techbot

Zen Follower

Join Date:
May 2005
Posts:
104
Plugin Contributions:
0

Re: 'Contact us' in header

hmm I'm trying something similar....to put a link back to my main website in the store, but I'm not finding that bit of code ( <!--bof navigation display--> ) anywhere in the tpl_header file

5 May 2007, 2:59 AM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: 'Contact us' in header

Are you just using a search function, or actually looking at the file? It's right about line 43.

<div id="headerWrapper"> <!--bof-navigation display--> <div id="navMainWrapper">
8 May 2007, 3:45 PM
#6
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

Re: 'Contact us' in header

Hello gjh42/glenn

How about language info and cart info? Which part of the code should I use?

Thanks

8 May 2007, 5:51 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: 'Contact us' in header

I haven't done anything with either of those, so can't tell you offhand where to pick up the code.
In Tools > Layout Boxes Controller, you can see the base php file for each function, so that would be a place to start. Enable the sidebox, and you may find useful links/variables/code in the view source. Otherwise, you will need to track down files in your file manager and look at ones with promising names.

There have been discussions of both of these questions in the forum, so try searching with as many specific keywords as you can think of.