Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding a top nav bar

Adding a top nav bar

Locked

Views: 1,346

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
25 Feb 2009, 2:57 AM
#1
yz250 avatar

yz250

New Zenner

Join Date:
Dec 2008
Location:
Canberra, Australia
Posts:
83
Plugin Contributions:
0

Adding a top nav bar

Hi Guys. My zencart sits off my existing website. So my customisation revolves around matching my cart to the rest of my site. I am now trying to introduce the top nav bar that exists on the rest of my site, to the top of all my zencart pages. You can see my site and my cart at the URLs below.

https://www.sgtpepper.com.au

https://www.sgtpepper.com.au/store

The nav bar is a table, the source for that table is this....

table class="top-nav" width="100%" cellspacing="0px">
<tr>
<td id="top-nav-home" width="14.3%"><a href="index.html">Home</a></td>
<td id="top-nav-products" width="14.3%"><a href="products.html">Products</a></td>
<td id="top-nav-orders" width="14.3%"><a href="orders.html">Orders</a></td>
<td id="top-nav-new" width="14.3%"><a href="whats-new.html">What's New</a></td>
<td id="top-nav-care" width="14.3%"><a href="care.html">Chilli Care</a></td>
<td id="top-nav-recipes" width="14.3%"><a href="recipes.html">Recipes</a></td>
<td id="top-nav-contact" width="14.3%"><a href="contact.html">Contact Us</a></td>
</tr>
</table>

My question is, to implement this nav bar do I need to modify the various .php files or can I introduce the above code to a html file somwhere, perhaps even the stylesheet?

Thanks in advance,

Brendan

25 Feb 2009, 3:09 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Adding a top nav bar

AhhHaa!!! A Caspian Aficionado !!
First there are a couple at least 3rd party modules for something like this and done in divs as tables are not actually designed for layout, although many have used them for this.
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=532
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=479

Now to what you probably do not want to hear...
I suggest that you "scrap" your html site and incorporate it's relavent content into Zen Cart....some of this can be via ez pages and I believe there may be a recipie add on?? If not ezpages and the TOC function could serve this purpose....

End result - one install one method for editing pages - one constant look to all of your pages

25 Feb 2009, 4:14 AM
#3
yz250 avatar

yz250

New Zenner

Join Date:
Dec 2008
Location:
Canberra, Australia
Posts:
83
Plugin Contributions:
0

Re: Adding a top nav bar

Hmmm. I admit I did think about integrating, but that would mean shifting files around on my server and probably having to get my SSL certs re-issued etc. I managed to rename my cart folder from "zencart" to "store" without trouble before...what you are proposing shouldnt be too much tougher than that should it?

That second add on you posted appears to be exactly what I want. At first I didnt realise zencart was a full on website, I thought it was just code and stuff you put into existing sites. If I had of known I would have begun with zencart in the first place.

P.S Yeah, im a big fan of chillis. I only have 40 odd varieties on my site for testing, I have another 80 to add once the sites ready.

25 Feb 2009, 5:02 AM
#4
kobra avatar

kobra

Black Belt

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

Re: Adding a top nav bar

I managed to rename my cart folder from "zencart" to "store" without trouble before...what you are proposing shouldnt be too much tougher than that should it?
Yes it only involves the same steps....
I would first get all your content that you have in html migrated to ZenCart and after you have this done, move it to the root.

This should not affect your SSL as it is, or should be issued to your domain name https://www.sgtpepper.com.au

25 Feb 2009, 11:42 PM
#5
yz250 avatar

yz250

New Zenner

Join Date:
Dec 2008
Location:
Canberra, Australia
Posts:
83
Plugin Contributions:
0

Re: Adding a top nav bar

Great, thanks heaps for that!

Brendan

10 Mar 2009, 10:15 PM
#6
yz250 avatar

yz250

New Zenner

Join Date:
Dec 2008
Location:
Canberra, Australia
Posts:
83
Plugin Contributions:
0

Re: Adding a top nav bar

Hey Kobra, ive been thinking about it and I think youve sold me...im going to begin migrating my existing site into zencart, then once its all mickey mouse i'll move it to the root folder of my webspace.

Ive read into turning off the columns alltogether on the ezpages etc, which is what I will want to do. My question is, on my photocomp page I have a very cool javascript slideshow thing happening. Am I able to incorporate javascript into zencart/my ezpages?

12 Mar 2009, 4:34 AM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4
12 Mar 2009, 11:52 AM
#8
yz250 avatar

yz250

New Zenner

Join Date:
Dec 2008
Location:
Canberra, Australia
Posts:
83
Plugin Contributions:
0

Re: Adding a top nav bar

Thanks Kobra, those are excellent resources.

I usually look up the FAQs and search the threads before posting here, but I must admit I need to spend more time looking through the wiki...seems to be some good stuff on it.

Thanks again,

Brendan