Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2007
    Location
    UK
    Posts
    2
    Plugin Contributions
    0

    help question '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

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: 'Contact us' in header

    You can copy the link code in /includes/modules/sideboxes/information.php:
    PHP Code:
    <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. #3
    Join Date
    Mar 2007
    Location
    UK
    Posts
    2
    Plugin Contributions
    0

    Default Re: 'Contact us' in header

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

  4. #4
    Join Date
    May 2005
    Posts
    126
    Plugin Contributions
    0

    Default 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. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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">

  6. #6
    Join Date
    Apr 2007
    Posts
    139
    Plugin Contributions
    0

    Default Re: 'Contact us' in header

    Hello gjh42/glenn

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

    Thanks

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

 

 

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. Lost Contact Us Header
    By CustomBooks in forum Basic Configuration
    Replies: 6
    Last Post: 16 Apr 2010, 10:26 AM
  3. Contact Us link only in header
    By fattyfat in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Jul 2009, 04:30 PM
  4. Link to contact Us page in header
    By gregoryjameswood in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Feb 2007, 03:04 PM

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