Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How do I add links to my site header?

How do I add links to my site header?

Locked

Views: 2,778

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
18 Nov 2007, 6:01 AM
#1
hairul avatar

hairul

New Zenner

Join Date:
Nov 2007
Posts:
16
Plugin Contributions:
0

How do I add links to my site header?

1 More question....

How i want to add additional Information or Link here.
Like FORUM , TERMS ETC....

19 Nov 2007, 7:56 AM
#2
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: How do I add links to my site header?

in your template > common > tpl_header.php find this code for your header links

line 58 and 59

<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li> <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>

add your additional links

<li><a href="file your forum link goes to">name of link</a></li> <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US) ?>Contact Us</a></li>

after the last </li>

20 Nov 2007, 2:33 AM
#3
chriskelm1 avatar

chriskelm1

New Zenner

Join Date:
Nov 2007
Location:
Buffalo, NY
Posts:
16
Plugin Contributions:
0

Re: How do I add links to my site header?

This works for someone is logged, how about on the main page? header.php?

20 Nov 2007, 6:02 AM
#4
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: How do I add links to my site header?

Then you will need to move those links up and after the last </li> line 47.

<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> <li><a href="file your forum link goes to">name of link</a></li> <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US) ?>Contact Us</a></li>
20 Nov 2007, 1:59 PM
#5
hairul avatar

hairul

New Zenner

Join Date:
Nov 2007
Posts:
16
Plugin Contributions:
0

Re: How do I add links to my site header?

usernamenone:

Then you will need to move those links up and after the last </li> line 47.

<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> <li><a href="file your forum link goes to">name of link</a></li> <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US) ?>Contact Us</a></li>

You mean for header.php or tpl_header.php ?

20 Nov 2007, 2:01 PM
#6
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: How do I add links to my site header?

hairul:

You mean for header.php or tpl_header.php ?
as per post above i.e.
find this code for your header links in your template > common > tpl_header.php find this code for your header links

20 Nov 2007, 2:33 PM
#7
hairul avatar

hairul

New Zenner

Join Date:
Nov 2007
Posts:
16
Plugin Contributions:
0

Re: How do I add links to my site header?

hahahahahhaha.... Thanks A lot..
ITS REALLY WORKS!!!!!! THANKS & THANKS

BTW, How to change fonts? Can Make a box for that? [HOME] [FORUM] [LOGIN]

and change fonts for Banner Box like Categoris... New Products.

Come Have a look my website

e-buying.com.my & comment or suggestion before im launching my website

20 Nov 2007, 2:42 PM
#8
hairul avatar

hairul

New Zenner

Join Date:
Nov 2007
Posts:
16
Plugin Contributions:
0

Re: How do I add links to my site header?

hahahahahhaha.... Thanks A lot..
ITS REALLY WORKS!!!!!! THANKS & THANKS

Another Question
1)BTW, How to change fonts? Can Make a box for that? [HOME] [FORUM] [LOGIN]

  1. change fonts for Banner Box like Categoris... New Products.

  2. Path Column (refer Pic)
    To Change Colour To Blue / Black or if can with background. Grey colour seems
    not very clear.

21 Mar 2008, 4:16 PM
#9
esoin avatar

esoin

New Zenner

Join Date:
Sep 2007
Posts:
30
Plugin Contributions:
0

Re: How do I add links to my site header?

Thanks, usernamenone!

That works like charm. :yes:

usernamenone:

Then you will need to move those links up and after the last </li> line 47.

<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> <li><a href="file your forum link goes to">name of link</a></li> <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US) ?>Contact Us</a></li>