Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default header modification help

    My Site

    I want to add "contact Us" in the header section next to where it says home and login. does anyone know how this is done please?

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: header modification help

    Quote Originally Posted by MachaNeko View Post
    My Site

    I want to add "contact Us" in the header section next to where it says home and login. does anyone know how this is done please?
    Make a copy of tpl_header.php to your hard drive.
    (from includes/templates/template_default/common/ )

    Open it to edit using a good text editor, and find:-

    PHP Code:
    <?php
          
    } else {
            if (
    STORE_STATUS == '0') {
    ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><?php echo HEADER_TITLE_LOGIN?></a></li>
    <?php } } ?>
    Add the line:

    <li><a href="index.php?main_page=contact_us"></a></li>

    So you get:-

    PHP Code:
    <?php
          
    } else {
            if (
    STORE_STATUS == '0') {
    ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><?php echo HEADER_TITLE_LOGIN?></a></li>
    <?php } } ?>
    <li><a href="index.php?main_page=contact_us"></a></li>
    SAVE, then ftp the file to:-

    includes/templates/YOUR_TEMPLATE/common/

  3. #3
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: header modification help

    yeah i just did that and nothing changed. should there be an echo line or something?

  4. #4
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: header modification help

    OOPS

    <li><a href="index.php?main_page=contact_us"></a></li>

    should be:

    <li><a href="index.php?main_page=contact_us">Contact us</a></li>

  5. #5
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: header modification help

    Quote Originally Posted by fairestcape View Post
    OOPS

    <li><a href="index.php?main_page=contact_us"></a></li>

    should be:

    <li><a href="index.php?main_page=contact_us">Contact us</a></li>

    LOL ah ok. thanks it works now.

  6. #6
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: header modification help

    It's generally not a good idea to Hard Code the core files like this, but for small "edits" that can be saved in over-rides folders, it does no harm.

    Remember, other hyperlinks also appear in the header bar (shopping cart, checkout, My Account) so do not add too many extra links, otherwise the header may "nudge" onto a new line and upset your layout styles.

  7. #7
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: header modification help

    yeah i learned that hte hard way lol

  8. #8

    Default Re: header modification help

    I want to bypass the category in the header.
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

  9. #9
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: header modification help

    anyone know how to add an image on the header? each time i add image code it shows up blank on the page.

  10. #10
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: header modification help

    Are you talking about the navigation header bar? If so, you configure the image reference in the stylesheet.

    #navMainWrapper {
    background-image: url(../images/YOUR-IMAGE.jpg);
    }

    The image must be the same dimensions as the navbar - particularly height.

    This image is placed in the images folder of your TEMPLATE - not the main images folder.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 ESTORENOW Header Modification
    By pageblair in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Apr 2012, 12:13 PM
  2. header language modification
    By tony_sar in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 16 Jun 2011, 08:31 PM
  3. header width modification in CSS
    By lieven23 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 25 Sep 2008, 10:33 PM
  4. Header Nav Code Modification
    By mattys in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 18 Oct 2006, 11:09 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