Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2005
    Location
    Brooklyn NY
    Posts
    507
    Plugin Contributions
    0

    Default I want to change the Text in the header Bar?

    if you see on my site I want to change the text in the header bar http://www.digitalmarauders.com/shop/

    you can see where I put home but the text that is already there says home and is a link. Is there any way to take the linked text out but still have that area be a link?

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

    Default Re: I want to change the Text in the header Bar?

    You can edit a copy of the english.php file after you create your own template & folder and find the defines for these text strings i.e. 'Home' and remove the text leaving the pair of single quotes i.e. ''
    This will get rid of the text....

    Then you need to create a transparent overlay image that will be on top of the link areas and be linked similar to but replacing with your link sizes and info and in a div placed correctly in most probably tpl_header.php:

    Code:
    <a href="index.php"><img src="includes/templates/your_template/images/spacer.gif" alt="Home" width="96" height="44" border="0" /></a>
    <a href="index.php?main_page=login"><img src="includes/templates/your_template/images/spacer.gif" alt="My Account" width="114" height="44" border="0" /></a>
    <a href="index.php?main_page=logoff"><img src="includes/templates/your_template/images/spacer.gif" alt="Log Off" width="89" height="44" border="0" /></a>
    <a href="index.php?main_page=shopping_cart"><img src="includes/templates/your_template/images/spacer.gif" alt="Cart" width="131" height="44" border="0" /></a>
    <a href="index.php?main_page=checkout_shipping"><img src="includes/templates/your_template/images/spacer.gif" alt="Checkout" width="106" height="44" border="0" /></a>
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2005
    Location
    Brooklyn NY
    Posts
    507
    Plugin Contributions
    0

    Default Re: I want to change the Text in the header Bar?

    I could not find that in the english.php

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

    Default Re: I want to change the Text in the header Bar?

    I could not find that in the english.php
    Depends on what you could not find - if the code that I posted, then this was not referenced as being in english.php but as an add to probably tpl_header.php or where ever you have placed your new nav bar along with the requirement of creating and naming a transparent gif.

    The engligh.php reference was for the "Home" entry and others that you do not want duplicated as most of these defines are in that file but alas the defines for Home is actually in /includes/languages/english/header.php - but you should learn to use the admin > tools > developers tools > to search for text strings that you need to locate for future reference :
    Code:
      define('HEADER_TITLE_CATALOG', 'Home');
      define('HEADER_TITLE_LOGOFF', 'Log Out');
      define('HEADER_TITLE_LOGIN', 'Log In');
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jul 2005
    Location
    Brooklyn NY
    Posts
    507
    Plugin Contributions
    0

    Default Re: I want to change the Text in the header Bar?

    let me ask this then is there any way to get rid of the whole header bar?

  6. #6
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: I want to change the Text in the header Bar?

    Remove the stuff from the tpl_header.php
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  7. #7
    Join Date
    Mar 2007
    Posts
    58
    Plugin Contributions
    0

    Default Re: I want to change the Text in the header Bar?

    Quote Originally Posted by Kim View Post
    Remove the stuff from the tpl_header.php
    Can anyone tell me what stuff to remove from the tpl_header.php ?

    I tried removing all this

    Code:
     
    <div id="headerWrapper">
    <!--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-->
    and it did remove the header nav bar, but it also removed the background behind the whole center section below.

    All I want to remove is the top nav bar above the header .

    Also, if I remove that bar, is there someplace else I can put the Login option ?

  8. #8
    Join Date
    Mar 2007
    Posts
    58
    Plugin Contributions
    0

    Default Re: I want to change the Text in the header Bar?

    Quote Originally Posted by Jbraz View Post
    Can anyone tell me what stuff to remove from the tpl_header.php ?

    I tried removing all this

    Code:
     
    <div id="headerWrapper">
    <!--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-->
    and it did remove the header nav bar, but it also removed the background behind the whole center section below.

    All I want to remove is the top nav bar above the header .

    Also, if I remove that bar, is there someplace else I can put the Login option ?

    Problem solved ! :)

 

 

Similar Threads

  1. Modify the text on the EZ-Pages Header bar
    By liizz in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Feb 2011, 08:00 AM
  2. Need to change the text in the blue title bar
    By kajamy2 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Aug 2010, 05:11 AM
  3. How do I change the color of the header text?
    By greatlakesherbalife in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Apr 2010, 02:44 AM
  4. I want to change the placement of the Home - Login navigation bar.
    By tracey_lee in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Mar 2009, 08:49 PM
  5. Move the header sales text to the nav bar?
    By beasleybub in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Apr 2007, 06:58 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