Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2007
    Posts
    104
    Plugin Contributions
    0

    Default Custom Navigation?

    How can I implement my own custom navigation menu into my custom template?

    Just need pointed in the right direction and I can take it from there.

    Thanks in advance!
    LMW1

  2. #2
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Custom Navigation?

    With these two files
    templates/YOUR_TEMPLATE/css/stylesheet.css
    templates/YOUR_TEMPLATE/common/tpl_header.php

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Custom Navigation?

    Quote Originally Posted by lmw1 View Post
    How can I implement my own custom navigation menu into my custom template?
    WHERE do you want this navigation menu to appear?

    Header
    Side Column
    Centre Column
    Footer

    And... where SPECIFICALLY in your chosen location would you like it? EG: at the TOP of the header or at the BOTTOM of the header... ?
    20 years a Zencart User

  4. #4
    Join Date
    Mar 2007
    Posts
    104
    Plugin Contributions
    0

    Default Re: Custom Navigation?

    I want my main nav bar to appear right below the header on all pages of my site. I also want my subcategories to appear in a dropdown (which they are not doing right now). I can design and code my own navigation bar, right?

    And in regards to the slideshow. I only want it to appear on the homepage (no other pages). Right now it shows up on every page. And again, I can script my own slideshow into my site, right?

    All of the above would be very simple for me to do in static html site, but I'm sure there's a little more to know to integrate these things into my Zen-Cart site.

    Any help in the right direction would be appreciated.

    Respectfully,
    LMW1

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Custom Navigation?

    We use several header/dropdown techniques... some are tweaked from existing plugins.

    SEE:
    Example One
    Example Two
    Example Three
    20 years a Zencart User

  6. #6
    Join Date
    Mar 2007
    Posts
    104
    Plugin Contributions
    0

    Default Re: Custom Navigation?

    Those are very nice.

    Can you point me in the right direction on how/where to code my own custom navigation in Zen Cart?

    I'm very proficient in coding (XHTML, HTML 5, CSS, etc), I just need to know "where" to place my custom code so it appears where I intend it to. I have my own custom template set-up using the overrides system as well.

    Also, I know where to place CSS files, JS files, etc. but "where" do you put the code that "calls" them? I normally code these paths into the "head" section/body section, etc.

    I'm just trying to wrap my head around the way Zen-Cart is built, once I figure that out...AWAY I GO!

    Any pointers?

    Respectfully,
    LMW1

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Custom Navigation?

    Search add-ons for drop-down menu.

    In general, it works off /common/tpl_header.php and a corresponding component file tpl_drop_menu.php

    The HEADER file calls in the DROP MENU file.

    The add-on probably has a good README.
    20 years a Zencart User

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Custom Navigation?

    Rather than coding your own HTML navigation from scratch, use one of the CSS dropdown menus in Free Addons and tweak it if necessary. The most comprehensive one I understand has examples for adding more submenus.

    You will need some PHP to dynamically populate the categories dropdowns unless you want to namually rework the menu every time you change a subcategory. The available mods use PHP to do it all dynamically.

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Custom Navigation?

    You don't need to insert anything in the <head> to load javascript or CSS files, as the Zen Cart code does it automatically when you name the files correctly and save them in the right locations. See the wiki:
    http://www.zen-cart.com/wiki/index.p...s_-_Javascript

    and read /includes/templates/template_default/css/CSS_Readme.txt.

 

 

Similar Threads

  1. Custom Category Navigation Menu
    By antondesignstudio in forum General Questions
    Replies: 2
    Last Post: 23 Sep 2008, 10:13 PM
  2. HEADER PROBLEM! custom horizontal navigation bar
    By aruleal in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Jul 2008, 07:31 AM
  3. Assitance with custom navigation
    By nnclyn in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Oct 2007, 01:44 PM
  4. Custom navigation bar, looking for help
    By vandiermen in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Feb 2007, 10:25 AM
  5. Custom Navigation Header
    By coastalfog in forum Basic Configuration
    Replies: 2
    Last Post: 13 Jun 2006, 02:37 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