Forums / Templates, Stylesheets, Page Layout / header navigation bar?

header navigation bar?

Locked
Results 1 to 20 of 26
This thread is locked. New replies are disabled.
13 Aug 2006, 18:13
#1
andyase avatar

andyase

Zen Follower

Join Date:
Oct 2005
Posts:
102
Plugin Contributions:
0

header navigation bar?

Hi all
Ive had a good look around but can't seem to find any reference to the header navigation bar.

I wish to remove it, I am using 1.3.0.2.

And: Is there a template that points to all the areas of the shop and gives names as there was in 1.2.6,

Regards
Andy
13 Aug 2006, 19:38
#2
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Posts:
1,090
Plugin Contributions:
0

Re: header navigation bar?

This depends on which header nav bar you are wanting to remove.

If it is is the header bar which shows all of your categories - that is the Category Tabs menu and can be turned off in Configuration / Layout Settings in the admin.

If it is the Top bar with Home - etc. It is EZPages, and they can be turned off in the admin under Congifuration /EZPages

If it is the very top home / login / checkout that is in the file includes/templates/YOURTEMPLATE/common/tpl_header (it is commented and is the header navigation) There's also a place to turn it off in admin that I simply cannot think of right now.

If it is the header menu that is trailing you are you navigate (It changes from HOME to HOME : CATEGORY : PRODUCT as you navigate your site) that is the Breadcrumb and it is turned on / off in the Configuration / Layout settings as well.

Hope that helps
14 Aug 2006, 17:21
#3
andyase avatar

andyase

Zen Follower

Join Date:
Oct 2005
Posts:
102
Plugin Contributions:
0

Re: header navigation bar?

Thats the one below.

If it is the very top home / login / checkout that is in the file includes/templates/YOURTEMPLATE/common/tpl_header (it is commented and is the header navigation) There's also a place to turn it off in admin that I simply cannot think of right now.

Thanks for the reply.

Andy
15 Aug 2006, 14:28
#4
lib99 avatar

lib99

Totally Zenned

Join Date:
Dec 2004
Posts:
965
Plugin Contributions:
0

Re: header navigation bar?

AFAIK there isn't a switch specifically for turning ON/OFF the header navigation. However, in your override copy of tpl_header.php, you can remove or comment out the following:
<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>
15 Aug 2006, 16:34
#5
zc_newbie avatar

zc_newbie

New Zenner

Join Date:
Aug 2006
Posts:
98
Plugin Contributions:
0

Re: header navigation bar?

LIB, do you remove all tha tcoding? I was looking 4 the same info...
15 Aug 2006, 19:56
#6
lib99 avatar

lib99

Totally Zenned

Join Date:
Dec 2004
Posts:
965
Plugin Contributions:
0

Re: header navigation bar?

Yes. That code is from the default tpl_header.php file located in
includes/templates/template_default/common/

The code can be commented out or removed. Try commenting out the code first to make sure the results are what you are looking for. It looks a little different in the classic template override of tpl_header.php. There it is encapsulated in a table. You should be able to find the same area of code. Make sure you edit a copy placed in your own custom template override directory.

Always make backups of files BEFORE making modifications. :)
05 Sep 2006, 20:00
#7
brotherhud avatar

brotherhud

New Zenner

Join Date:
Sep 2006
Posts:
51
Plugin Contributions:
0

Re: header navigation bar?

Rather than turning it off I want to edit the links in that bar. I want to have home, account, cart, mission, and contact while also having the search bar at the bottom. Can I edit what is in this bar in the admin section or do I have to edit php files?
05 Sep 2006, 20:06
#8
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: header navigation bar?

Can I edit what is in this bar in the admin section or do I have to edit php files?


You will have to edit the tpl_header.php
05 Sep 2006, 20:10
#9
brotherhud avatar

brotherhud

New Zenner

Join Date:
Sep 2006
Posts:
51
Plugin Contributions:
0

Re: header navigation bar?

I look at the header.php and it looks pretty daunting. I would add the links I want up there but I am not sure of the Constants names and whatnot. Maybe there is something simple I just don't know of? Or would this require a great deal of work, ie creating new php files and whanot?
07 Sep 2006, 08:49
#10
msbettybebe avatar

msbettybebe

New Zenner

Join Date:
Aug 2006
Posts:
17
Plugin Contributions:
0

Re: header navigation bar?

Do any of you know how to change that top HOME and LOGIN font color? I thought you were supposed to change :

TD.headerNavigation A, TD.headerNavigation A:visited, td.footertop a {
font-weight: bold;
color: ##9da7ad;
}

(in the stylesheet_original.css file)

But it doesn't work for me. "home" and "login" still appears white to me on the top of the page as well as the bottom where the footer is.
Is there another area where I'm supposed to change the font color as well? Please help! I've been trying to figure this out for 6 hours.
Thanks
07 Sep 2006, 12:16
#11
lib99 avatar

lib99

Totally Zenned

Join Date:
Dec 2004
Posts:
965
Plugin Contributions:
0

Re: header navigation bar?

msbettybebe:

color: ##9da7ad;


Only one '#' in front of the color code.

From the stylesheet_original.css file (Zen Cart v1.3.0.1):
TD.headerNavigation A, TD.headerNavigation A:visited, td.footertop a  {
  font-weight: bold;
  color: #ffffff;
}

TD.headerNavigation A:hover, td.footertop a:hover  {
  color: #a8cfff;
}

TR.

If you can, using the Mozilla Firefox browser install Chris Pederick's Web Developer extension. It's an invaluable tool for web designers and will help you track down areas of your CSS very nicely.
07 Sep 2006, 21:36
#12
brotherhud avatar

brotherhud

New Zenner

Join Date:
Sep 2006
Posts:
51
Plugin Contributions:
0

Re: header navigation bar?

To change the color and layout I just went into the tpl_header.php file and added my own divs to the file and then added those to my css file. Edited that top bar pretty substantially though. It worked though.
16 May 2007, 01:14
#13
thm avatar

thm

New Zenner

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

Re: header navigation bar?

lib99:

AFAIK there isn't a switch specifically for turning ON/OFF the header navigation. However, in your override copy of tpl_header.php, you can remove or comment out the following:
<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>


I tried to do what was mentioned above and could not do it. I placed all the code between /* and */ and it just shows up with /* printed before the header and */ printed after the header. Didn't disable it.

What am I doing wrong? Isn't commenting just placing code between those two?

HELP!!! :frusty:
18 May 2007, 23:23
#14
jund avatar

jund

Zen Follower

Join Date:
Sep 2006
Posts:
276
Plugin Contributions:
0

Re: header navigation bar?

I put the Search form in the nav bar. Now I cannot find where I did that. I want to go back and edit it - my brain has fried... can someone please tell me where the search form is located?
Thank you,
jund
19 May 2007, 17:10
#15
jund avatar

jund

Zen Follower

Join Date:
Sep 2006
Posts:
276
Plugin Contributions:
0

Re: header navigation bar?

jund:

I put the Search form in the nav bar. Now I cannot find where I did that. I want to go back and edit it - my brain has fried... can someone please tell me where the search form is located?
Thank you,
jund


Figured it out - I was looking in the wrong folder.

jund
11 Jun 2008, 10:14
#16
modofinder avatar

modofinder

New Zenner

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

Re: header navigation bar?

Yeah thm,

I did the same, tried to comment it out, didn't work for me although...I didn't use an override, would it make that big a difference?
I would like to remove all the categories from the header aswell since it clutters the page entirely.
Ken.
http://modofinder.com/
11 Jun 2008, 18:41
#17
bluetooth avatar

bluetooth

New Zenner

Join Date:
Sep 2005
Posts:
76
Plugin Contributions:
0

Re: header navigation bar?

I think this is what you want to do. Try it, It should work. don't use /* */ use <!-- -->


<!--
<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></l
i>
<?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_CONTENT
S; ?></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>
-->

11 Jun 2008, 19:26
#18
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Posts:
21,876
Plugin Contributions:
6

Re: header navigation bar?

That will remove the entire header (assuming the ending --> is in the right place).

To remove just the navbar, comment it here[html]<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>
-->[/html]
11 Jun 2008, 23:03
#19
modofinder avatar

modofinder

New Zenner

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

Re: header navigation bar?

Hey,

Thank you bluetooth and gjh42. Tried gjh42's method, doesn't work.

Want to try bluetooth's method but not sure how to use them, so far, tried to use

/*

and

*/
where gjh42 suggested, site still has ugly nav bar at the top.

Any other suggestions out there? It displayed the /* */ above and below the logo of my site only.

Ken.

http://modofinder.com/
12 Jun 2008, 16:52
#20
bluetooth avatar

bluetooth

New Zenner

Join Date:
Sep 2005
Posts:
76
Plugin Contributions:
0

Re: header navigation bar?

Modofinder,

Both our methods do not use /* */. (php comment)

Look closely at what we did. We both uses <!-- for the beginning and --> for the end. (html comment)

Don't use /*

*/

USE <!--

-->