Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default contact us along the top??

    Hi there,
    How do I get the contact us link at the top of my site alongside Home and Login??

    Thanks for reading

    Maxy
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

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

    Default Re: contact us along the top??

    Those are in the navMain div that exists in tpl_header.php

    You wil have to add/hard code a standard html href link into that div

    Assuming your install is at the root of your account this will keep the link relative
    Code:
    /index.php?main_page=contact_us
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: contact us along the top??

    Hi Kobra,
    If I want the contact us page to be on the right hand side is there a certain way I have to add this?

    Also is it
    <href index.php?main_page=contact_us
    Sorry I'm not very good with this stuff
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: contact us along the top??

    If I want the contact us page to be on the right hand side is there a certain way I have to add this?
    The file I referenced is fairly well internally documented

    Find the BOF navMain & the EOF navMain

    You will see a closing div - - </div>
    before or right after the EOF
    Insert your link before this closing div

    Correct syntax
    http://www.w3schools.com/HTML/html_links.asp
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: contact us along the top??

    Hi Kobra,
    I did that but I ended up getting a white line under my heading that said HEADING_CONTACT_US

    I added the text below in red
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div><li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CONTACT_US; ?></a></li>
    <!--eof-navigation display-->

    and that you for the link
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  6. #6
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: contact us along the top??

    I did that but I ended up getting a white line under my heading that said HEADING_CONTACT_US
    change:
    PHP Code:
    <div id="navMainSearch"><?php require(DIR_WS_MODULES 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div><li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CONTACT_US?></a></li>
    <!--eof-navigation display-->
    to:
    PHP Code:
    <div id="navMainSearch"><?php require(DIR_WS_MODULES 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div><li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US'''SSL'); ?>"><?php echo BOX_INFORMATION_CONTACT?></a></li>
    to use HEADING_CONTACT_US, you will have to add a define statement to your english.php file

    PHP Code:
      define('HEADING_CONTACT_US''Contact Us'); 

  7. #7
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: contact us along the top??

    Thanks for that!!
    does it matter where I place the [FONT=Courier New][/FONT]
    [FONT=Courier New]define('HEADING_CONTACT_US', 'Contact Us'); info??[/FONT]
    [FONT=Courier New][/FONT]
    [FONT=Courier New]Cheers,[/FONT]
    [FONT=Courier New][/FONT]
    [FONT=Courier New]Maxy[/FONT]
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  8. #8
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: contact us along the top??

    Sorry I replied quickly to that.

    You really should use the override system

    simply copy the header.php file located in
    /includes/languages/english

    copy to
    /includes/languages/english/extra_definitions/

    you can add
    PHP Code:
    define('HEADING_CONTACT_US''Contact Us'); 
    below
    PHP Code:
    define('HEADER_SALES_TEXT''TagLine Here'); 

  9. #9
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: contact us along the top??

    No probs at all.
    Thank's for replying.
    I can't do it till I get home in a couple of hours anyway :)
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  10. #10
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: contact us along the top??

    Hi There,
    I added
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div><li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo BOX_INFORMATION_CONTACT; ?></a></li>


    to the /includes/languages/english/header.php file

    It's showing Contact us now but it's in the wrong spot!!

    But can't find where to add define('HEADING_CONTACT_US', 'Contact Us');

    There is no define('HEADER_SALES_TEXT', 'TagLine Here');
    in my English.php file

    Cheers,

    Maxy
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Contact us form: Removing the Store, Name, Address etc. from top
    By hello in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Jul 2010, 08:12 AM
  2. Categories along top
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 6 Jul 2010, 03:53 PM
  3. How do I add "Contact Us" to the top next to Log In?
    By btolly in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 15 May 2009, 06:00 PM
  4. Re-positioning the shop so there is space along the top?
    By tempest in a teacup in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 Jan 2009, 11:59 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR