Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / header navigation bar?

header navigation bar?

Locked

Views: 16,026

Results 21 to 26 of 26
This thread is locked. New replies are disabled.
12 Jun 2008, 4:57 PM
#21
bluetooth avatar

bluetooth

New Zenner

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

header navigation bar?

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

-->

<!-- PLEASE NOTE, I ADDED THIS BEGINNING COMMENT MARKUP. IT WAS NOT ORIGINALLY HERE. <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>

--> NOTE, AND HERE I ADDED THE ENDING COMMENT MARKUP. IT WAS NOT ORIGINALLY HERE.

12 Jun 2008, 11:50 PM
#22
modofinder avatar

modofinder

New Zenner

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

Re: header navigation bar?

Hey Bluetooth,<br>
<br>
Thank you for that, but that is not what I thought I meant.:shocking:<br>
<br>
I want to remove the categories that are both on the left hand side and are repeated below the logo using the classic style template.<br>
<br>
I wish to have the products/categories on the left hand column menu ONLY, not at the top aswell as it clutters the site as I have 9.5k+ products and it will ever expand.<br>
<br>
Any help on that, I am sorry if I thought that was called the navigation bar :frusty:<br>
<br>
Ken.<br>
http://modofinder.com/

13 Jun 2008, 5:03 AM
#23
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: header navigation bar?

For that, you want admin > Configuration > Layout Settings > Categories-Tabs Menu > set to off.

13 Jun 2008, 10:01 AM
#24
modofinder avatar

modofinder

New Zenner

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

Re: header navigation bar?

Hiyas,

Thank you ever so much! Its alot more cleaner and crisp now, thank you yet again!

My next daunting task is to create an override...wish me luck:flex:

Ken.
http://modofinder.com/

13 Jun 2008, 11:22 AM
#25
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: header navigation bar?

Hey Ken, overides may seem daunting but once you get into the swing of it, you'll be fine....when I installed my first Zen Cart, I happily edited away at the original files before I ever read about overides....bad me LOL, this time around it has been much easier....basically everywhere there is a classic folder, create your custom folder, and copy files over to them. It is also a good idea to keep a txt file saved with notes on any core files that you change since there are some that can't be over-ridden....pity that never occured to me before I started LOL but better late than never! :wacko:

The tutorial section has some really good articles, just a few:

https://www.zen-cart.com/tutorials/index.php?article=143
https://www.zen-cart.com/tutorials/index.php?article=142
https://www.zen-cart.com/tutorials/index.php?article=230

Make use of the search feature here too, I was able to do heaps on my own without asking just by searching, but if you can't find what you're looking for there's lots of help here too :D

14 Jun 2008, 4:51 AM
#26
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: header navigation bar?

And remember, only copy files to your custom template folders if you need to edit them. There is no benefit, and added hassle, to having unedited files sitting in your template folders.