Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding links to main header bar

Adding links to main header bar

Locked

Views: 1,722

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
31 Mar 2007, 8:42 PM
#1
johnq avatar

johnq

New Zenner

Join Date:
Mar 2007
Posts:
1
Plugin Contributions:
0

Adding links to main header bar

I would like to add links to my main header. I found an example to do this for the "Contact Us" page which worked fine, but I'm having trouble adding additional ones. I do not wish to use EZ pages as it adds an additional row of links. I want the links to appear in the main header bar.
Thanks in advance for any advice.

1 Apr 2007, 12:03 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding links to main header bar

For standard non Zen Cart Links or static links > In your template copy of tpl_header.php find this and continue with what is in red adjusting to your links

<?php
      } else {
        if (STORE_STATUS == '0') {
?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } } ?>
    <li><a href="http://domain_to_your_page.com''>Your_title</a></li> 
    <li><a href="http://domain_to_your_page.com''>Your_title</a></li>
3 May 2007, 4:04 PM
#3
ophelia avatar

ophelia

New Zenner

Join Date:
Feb 2006
Posts:
42
Plugin Contributions:
0

Re: Adding links to main header bar

I have a question about this one.

I have done exactly as shown, but on the header it's only showing the every other entry.

So I have forums, gallery, chat, freebies, calendar

On the bar it shows forums, chat, calendar. In order for me to work, I have to do 2 entries for each one.

<li><a href="http://domain_to_your_page.com''>Forums</a></li> <li><a href="http://domain_to_your_page.com''>Forums</a></li> <li><a href="http://domain_to_your_page.com''>Gallery</a></li> <li><a href="http://domain_to_your_page.com''>Gallery</a></li>

Is it suppose to work like that?

5 May 2007, 8:26 AM
#4
mobilemick avatar

mobilemick

New Zenner

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

Re: Adding links to main header bar

In your template copy of tpl_header.php

Where can i find this file ??

Thanks

5 May 2007, 8:47 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding links to main header bar

Mobilemick,

All core files for templates can be copied from /includes/templates/template_default

But only the ones that you need to edit

5 May 2007, 10:56 AM
#6
mobilemick avatar

mobilemick

New Zenner

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

Re: Adding links to main header bar

Looked all over in Templates/classic even looked through the language files, still cant find anything to change links in the header :)

Thanks
Mick

6 May 2007, 2:07 AM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding links to main header bar

Looked all over in Templates/classic
Not 'classic' look here and for tpl_header.php

All core files for templates can be copied from /includes/templates/template_default