Forums / Templates, Stylesheets, Page Layout / Editing the Header and footer to have more links

Editing the Header and footer to have more links

Locked

Views: 1,770

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
3 Nov 2006, 1:59 PM
#1
jodz avatar

jodz

New Zenner

Join Date:
Nov 2006
Posts:
44
Plugin Contributions:
0

Editing the Header and footer to have more links

I want to add contact us and site map to the header and footer of the page can any body help?

Cheeers

3 Nov 2006, 2:11 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Editing the Header and footer to have more links

Add the following to both your includes -> templates -> YOUR_CUSTOM_FOLDER -> common -> tpl_header.php and tpl_footer.php

  <?php if (DEFINE_CONTACT_US_STATUS <= 1) { ?>
    <li> <?php echo '<a href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'; ?></li>
  <?php } ?>

  <?php if (DEFINE_SITE_MAP_STATUS <= 1) { ?>
    <li> <?php echo '<a href="' . zen_href_link(FILENAME_SITE_MAP) . '">' . BOX_INFORMATION_SITE_MAP . '</a>'; ?></li>
    <?php } ?>

In tpl_footer.php find the following:

<!--bof-navigation display -->
<div id="navSuppWrapper">
<div id="navSupp">
<ul>
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?>Main Page</a></li>
ADD THE ABOVE LINKS HERE

and add the links.

In tpl_header.php find the following:

<!--bof-navigation display--> <div id="navMainWrapper"> <div id="navMain"> <ul class="back"> <li><?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a></li> ADD THE ABOVE LINKS HERE and add the links.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.