Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Jun 2009
    Posts
    21
    Plugin Contributions
    0

    Default Changing the top header....

    Hi,

    Looking for a little help from someone. I'm sort of new to this.

    My website is www.buysmilighttubes.co.uk

    On the very top bar I believe it is header.php I am wanting to do the following;

    Add a button Contact Us... and for this to link onto osticket the link is

    http://buysmilighttubes.co.uk/contact/

    I no that EZ pages can add links however that seems to add the link below the logo and the colour of the bar does not really look right on the site.

    Thanks in advance

    Chris.

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

    Default Re: Changing the top header....

    I wouldn't call that "Contact Us", but rather call it "Open Support Ticket". Your contact us page is a default page in ZC.

    Anyway, open the following file:

    includes/templates/template_default/common/tpl_header.php

    and around line 45 - 47:

    PHP Code:
        <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
    Add this directly below it:

    PHP Code:
    <li><a href="http://buysmilighttubes.co.uk/contact">Open Support Ticket</a></li
    SAVE the edited file to:

    includes/templates/cherry_zen/common/tpl_header.php

  3. #3
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Changing the top header....

    To add a link in the top nav bar you need to find a file called tpl_header.php.

    includes - templates - YOUREMPLATE - common.

    At the top of the file you will see:

    Find the section that reads:

    Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <?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 } } ?>
    
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    </ul>
    </div>
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->
    Basically this creates a list which is then formatted into the top nav buttons.

    So, you can add another <li></li> pair to the list. Like:

    Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <?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 } } ?>
    
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    <li>YOUR NEW LINK GOES IN HERE</li>
    </ul>
    </div>
    <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->
    You could replace "YOUR NEW LINK GOES HERE" with <a href="http://buysmilighttubes.co.uk/contact/">http://buysmilighttubes.co.uk/contact/</a>

  4. #4
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Changing the top header....

    Sorry typo:

    <a href="http://www.buysmilighttubes.co.uk">www.buysmilighttubes.co.uk</a>

  5. #5
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Changing the top header....

    Having a bad hair day:

    <a href="http://www.buysmilighttubes.co.uk">YOUR LINK TEXT</a>

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default Re: Changing the top header....

    Some invaluable tools for you would be:
    * firefox with the firebug addon. - Let's you find that the info you want to add would go in the navMain id.

    * The developers tool kit in the tools menu of your admin will tell you that the navMain id is in the includes/templates/cherry_zen/tpl_header.php
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  7. #7
    Join Date
    Jun 2009
    Posts
    21
    Plugin Contributions
    0

    Default Re: Changing the top header....

    Thanks for all your help.. Ill take a look at that.

  8. #8
    Join Date
    Jun 2009
    Posts
    21
    Plugin Contributions
    0

    Default Re: Changing the top header....

    Hi,

    Just tried to do this... It works however the problem which I have is it shows the link in a smaller font and black so does'nt fit into my site. Can you advice how to correct this please?

    Thanks

  9. #9
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Changing the top header....

    see the post about firefox/firebug.

    It will tell you exactly which css rule is creating that color.

    In this case i am guessing that there are <span> tags that are styled around the other links.

    The style for it is on line 127 of your stylesheet.

    So you need to put <span> tags around your link but inside your <li> tags.

    <li><span><a></a></span></li>

  10. #10
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Changing the top header....

    I am sorry. I am having a bad day! I will stop posting after this and read a book.

    The span tags are inside the <a> tags on the others.

    <li><a><span></span></a></li>

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Changing the 'Support Site' link on top-right of the admin page?
    By yelow in forum Customization from the Admin
    Replies: 2
    Last Post: 12 Mar 2012, 08:07 PM
  2. changing font color of ezpage links in top header
    By circlegtractors in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 13 Jun 2009, 10:40 PM
  3. Changing <Header> at the top of Browser
    By tekfix in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 13 May 2006, 04: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