Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2008
    Posts
    34
    Plugin Contributions
    0

    Default Combine main nav and EZ pages

    Hi,

    can someone tell me if its possible to combine the navigation bar which normally displays at the very top:

    HOME LOGIN MY ACCCOUNT CHECKOUT

    with the EZ pages.

    Basically I want my main header image and just one navigation line underneath. I know how to move the main navigation under the image but I cant get to combine it with EZ pages which always displays in another line underneath.

    Thanks
    Liz

  2. #2
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Combine main nav and EZ pages

    The second line of navigation is in a DIV with a class of navBreadCrumb, while the main nav is, you guessed it, in a DIV with class navMain (inside the navMainWrapper div).

    This means it will be very difficult to do what you want. Every page of products listing, products detail, Information and More Information sideboxes, and pretty much anything except your home page uses this second line of navigation.

    You'd have to do a lot of rewriting throughout the core code to merge the two lines, I think.

    HTH

    Rob

  3. #3
    Join Date
    Jan 2008
    Posts
    34
    Plugin Contributions
    0

    Default Re: Combine main nav and EZ pages

    Hmm - not the answer i wanted to hear but thanks for your honesty!

    I have seen this effect on may prebought templates But I dont want to buy these as from looking at the source codee they are an unrecognisable rewrite of Zencart.

    I was wondered if there was a clever way of putting the home, login etc into internal link pages in EZ pages. I just dont know what code i would put in though. Home page would be strightforward enough but the login etc would be an 'IF' statement judging on if you are already logged in......

    Has anyone tried this with any success?

    Thanks

  4. #4
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Combine main nav and EZ pages

    And now, having made it sound like a big deal, I looked a little further (search term "breadcrumb Home" in the forum's search field) and saw lots of posts about this -- or at least relevant to what you want to do.

    Most people are simply concerned with changing aspects of the breadcrumbs, not removing them entirely or even merging them.

    But if you're a codaholic, you can start at ../includes/templates/-your-template-/common/tpl_header.php. That's the file that assembles the header stuff, not surprisingly. There is also a includes/classes/breadcrumb.php file that you'd likely have to look at.

    We are now well out of my league, so others will have to chime in. But as a personal note, I appreciate the breadcrumbs being separate from the site navigation. Sure it looks redundant at times, but when you're down in the middle of the site it helps to be able to back up to just where you want.

    HTH

    Rob

  5. #5
    Join Date
    Jan 2008
    Posts
    34
    Plugin Contributions
    0

    Default Re: Combine main nav and EZ pages

    Hi Rob,

    Its not actually the 'breadcrumb' bit i want to touch.

    Its the part normally at the top. HOME - LOGIN - CART etc that i want to merge with EZ pages.

    Thanks for looking though!
    Liz

  6. #6
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Combine main nav and EZ pages

    Sorry, I was getting lost in my own verbiage there.

    The EZ-Pages code is in the file ../admin/ezpages.php

    That's a very large file of code, and somewhere in there is the part of the code that tells Zen where to put the EZ-Pages links. Finding, extracting and putting that code in the right file is a task for an expert. You may have to pay for that.

    Can I ask why the other locations of EZ-Pages links won't work for your site? They don't need to be in that line at top; they can be in the footer or in the Important Links sidebox. (That's where mine are.)

    There's a contribution in the Downloads called EZ-Pages TOC Sidebox which may also be of some use to you.

    Rob

  7. #7
    Join Date
    Jan 2008
    Posts
    34
    Plugin Contributions
    0

    Default Re: Combine main nav and EZ pages

    Thanks Rob - Ill have a look at that download and see if its what I want.

    Its not so much the loction of th EZ pages its combining them with the main navigation - HOME - LOGIN and so on. I like sleek sites and I just wanted one horizontal nav with all my links on together.

    I have been experimenting again today and got somewhere by copying the code out of TPL_footer.php as that puts EZ and main navigation links together. I then copied that code into my TPL_header and got them combined - although it didnt pick up the log-in (i got HOME - then EZ pages).

    Thanks
    Liz

  8. #8
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Combine main nav and EZ pages

    Sounds like you're moving in the right direction.

    If you get it working, you might consider writing out the steps involved and posting them as the final note in this thread. That way, someone else wanting to do the same thing should be able to find the thread and the solution. These forums are huge and the solution might already be in here somewhere but not findable for whatever reason.

    Rob

  9. #9
    Join Date
    Nov 2006
    Posts
    76
    Plugin Contributions
    0

    Default Re: Combine main nav and EZ pages

    Quote Originally Posted by LizzyB View Post
    Thanks Rob - Ill have a look at that download and see if its what I want.

    Its not so much the loction of th EZ pages its combining them with the main navigation - HOME - LOGIN and so on. I like sleek sites and I just wanted one horizontal nav with all my links on together.

    I have been experimenting again today and got somewhere by copying the code out of TPL_footer.php as that puts EZ and main navigation links together. I then copied that code into my TPL_header and got them combined - although it didnt pick up the log-in (i got HOME - then EZ pages).

    Thanks
    Liz
    I'm new also and tring to do the same thing. The "FAQ" section will instruct you on how to add "contact us" in the main navigation bar. I belive this is where you will discover the answer to your question and hopefuly mine as well. After I followed the directions for adding "contact us" I then added the exact same code again directly below and then started fooling around with the text in the "BOX_INFORMATION_CONTACT ." area and was able to add text that I wanted however the text will not apear if there are spaces and niether will the page. I know this isn't exactly how the change should be made but perhaps this will get you closer. Please let me know if you figure this out.
    <?php if (DEFINE_CONTACT_US_STATUS <= 1) { ?>
    <li><?php echo '<a href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'; ?></li>
    <?php } ?>


    www.alisgaragesale.com/outboard_exchange

  10. #10
    Join Date
    Nov 2006
    Posts
    76
    Plugin Contributions
    0

    Default Re: Combine main nav and EZ pages

    I think this is what you're looking for: https://www.zen-cart.com/tutorials/i...hp?article=234

    www.alisgaragesale.com/outboard_exchange




    Quote Originally Posted by LizzyB View Post
    Hmm - not the answer i wanted to hear but thanks for your honesty!

    I have seen this effect on may prebought templates But I dont want to buy these as from looking at the source codee they are an unrecognisable rewrite of Zencart.

    I was wondered if there was a clever way of putting the home, login etc into internal link pages in EZ pages. I just dont know what code i would put in though. Home page would be strightforward enough but the login etc would be an 'IF' statement judging on if you are already logged in......

    Has anyone tried this with any success?

    Thanks

 

 

Similar Threads

  1. Changing links on category tabs and main nav bars
    By iwalkonstars in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 25 Apr 2012, 09:22 AM
  2. change main nav bar links to ez pages
    By barendfaber in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Nov 2010, 03:00 PM
  3. Move main nav items to categories nav
    By glennnz in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 May 2008, 08:14 AM
  4. Aligning EZ pages with main nav
    By stjude in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Aug 2006, 09:39 PM
  5. Header and main nav looking strange in FF
    By stjude in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 18 Jul 2006, 04:58 PM

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