Forums / Templates, Stylesheets, Page Layout / I want to change the Text in the header Bar?

I want to change the Text in the header Bar?

Locked

Views: 2,484

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
3 Feb 2007, 11:58 PM
#1
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

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?

4 Feb 2007, 12:24 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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:

<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

4 Feb 2007, 1:29 AM
#3
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

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

I could not find that in the english.php

4 Feb 2007, 2:53 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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 :

  define('HEADER_TITLE_CATALOG', 'Home');
  define('HEADER_TITLE_LOGOFF', 'Log Out');
  define('HEADER_TITLE_LOGIN', 'Log In');

Zen-Venom Get Bitten

5 Feb 2007, 3:35 AM
#5
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

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?

5 Feb 2007, 3:48 AM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,678
Plugin Contributions:
0

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.

10 Oct 2007, 4:59 PM
#7
jbraz avatar

jbraz

New Zenner

Join Date:
Mar 2007
Posts:
59
Plugin Contributions:
0

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

Kim:

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

 
<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 ?

10 Oct 2007, 6:00 PM
#8
jbraz avatar

jbraz

New Zenner

Join Date:
Mar 2007
Posts:
59
Plugin Contributions:
0

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

Jbraz:

Can anyone tell me what stuff to remove from the tpl_header.php ?

I tried removing all this

<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 ! :)