Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2007
    Posts
    30
    Plugin Contributions
    0

    Default Link to contact Us page in header

    Hi there,

    I've made a completely custom template, and I've just realised I need a link to the contact page in the header.

    My template does not use any of the side/information boxes so I've been copying the contact us part of the information.php code to my header template to no avail.

    here's my most recent attempt :

    tpl_header.php - navigation where I want the contact us link

    Code:
    <div id="navigation">
        
            <ul class="back">
                <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
                <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
                <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
                <?php require($template->get_template_dir('tpl_contact_us_link_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_contact_us_link_header.php'); ?>
            </ul>
            
        </div>
    and here's the template tpl_contact_us_link_header.php I created from the contact us excerpt from information.php

    Code:
    <?php
      if (DEFINE_CONTACT_US_STATUS <= 1) {
        $information[] = '<li><a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a></li>';
      } ?>
    any pointers would be great

    cheers.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Link to contact Us page in header

    if you can switch to the classic template you will find that this link by default is along this line:
    Code:
    http://www.your_domain.com/index.php?main_page=contact_us
    so where you have your ul as:
    Code:
    <ul class="back"> <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> <?php
    require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?> <?php
    require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?> <?php
    require($template->get_template_dir('tpl_contact_us_link_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_contact_us_link_header.php'); ?> </ul>
    I would replace that with:
    Code:
    <li><a href="http://www.your_domain.com/index.php?main_page=contact_us''>Contact Us</a>;
    </ul>

 

 

Similar Threads

  1. Contact Page H1 Header
    By Hell Guapo in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 17 Oct 2011, 12:32 AM
  2. Contact Us link only in header
    By fattyfat in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Jul 2009, 04:30 PM
  3. Replies: 1
    Last Post: 1 Jul 2009, 08:09 PM
  4. Contact Us Link Returns Blank Page
    By dnolan in forum General Questions
    Replies: 3
    Last Post: 5 Jul 2008, 07:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg