Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Posts
    8
    Plugin Contributions
    0

    Default Empty <li> below Home Nav

    Built this as a check out add on for a customer. Going crazy for 3 days now trying to find this empty <li> at the bottom of the main page just under the Home Page link.

    home page

    I am new to zen cart. Any help would be greatly appreciated.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Empty <li> below Home Nav

    Probably in includes/templates/classic/common/tpl_footer.php.

    Best to create your custom template before you go any further: http://www.zen-cart.com/content.php?...ustom-template

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

    Default Re: Empty <li> below Home Nav

    If you "built this", you need to tell us what file(s) you modified and how before we can advise on a solution.

    There is indeed an empty <li>, which I would expect to be generated by /includes/templates/your_template/templates/tpl_ezpages_bar_footer.php if you had disabled the check for there being any links to output, in the course of adding list structure. Or it could be due to something in /includes/templates/your_template/common/tpl_footer.php, or possibly /includes/modules/ezpages_bar_footer.php.


    And yes, copy your changes to a new custom template folder as stevesh said.
    Last edited by gjh42; 2 May 2012 at 04:29 PM.

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Empty <li> below Home Nav

    /configuration / EZ-Pages Settings / EZ-Pages Display Status - FooterBar

    Set it to "0".

    This is a 'global' setting.

    If you actually *want* the ezy pages to show as links in some pages, you'll need to set this back to '1' and disable specific pages via the 'EZ-Pages Pages to disable footers' settings.

    Another option is to add an EZ-page, which will then be used in place of the 'missing' list element.

    Cheers
    Rod

  5. #5
    Join Date
    Apr 2012
    Posts
    8
    Plugin Contributions
    0

    Default Re: Empty <li> below Home Nav

    Quote Originally Posted by RodG View Post
    /configuration / EZ-Pages Settings / EZ-Pages Display Status - FooterBar

    Set it to "0".

    This is a 'global' setting.

    If you actually *want* the ezy pages to show as links in some pages, you'll need to set this back to '1' and disable specific pages via the 'EZ-Pages Pages to disable footers' settings.

    Another option is to add an EZ-page, which will then be used in place of the 'missing' list element.

    Cheers
    Rod

    OMG thank you sooooo much!!! It was the ez page display status for the footer. Set to 0 it is gone woo hoo!!

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

    Default Re: Empty <li> below Home Nav

    Note that you have fixed the symptom, but you have some sort of custom coding that caused the empty <li> in the first place. Stock Zen Cart would not show anything there if there were no ez-page links.

  7. #7
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Empty <li> below Home Nav

    Quote Originally Posted by gjh42 View Post
    Note that you have fixed the symptom, but you have some sort of custom coding that caused the empty <li> in the first place. Stock Zen Cart would not show anything there if there were no ez-page links.
    As much as I hate to dissagree with you (which more often than not makes me look a fool. I don't really expect this time to be an exception, but I'd rather be an educated fool than an ignorant fool ), but this may warrant further investigation.

    --------------- Test Store#1 - V1.5 - unmodified no EZ-pages --------------
    <ul id="footer-home">
    <li>
    <a href="http://unamed_store.com/">Home</a>
    </li>
    </ul>
    <ul id="footer-links">
    <li></li>
    </ul>
    ---------------------------------------------------------------


    --------------- Test Store#2 - V1.3.9 - No EZ-page defined/used --------------
    <div id="navSupp">
    <ul>
    <li>
    <a href="http://shop.vcsweb.com/">Store front</a>
    </li>
    <li></li>
    </ul>
    </div>
    --------------------------------------------------------------------

    --------------- Test Store#2 - V1.3.9 - With an EZ-page (Internal link to 'Home' @ http://vcsweb.com ) --------------

    <div id="navSupp">
    <ul>
    <li>
    <a href="http://shop.vcsweb.com/">Store front</a>
    </li>
    <li>
    &nbsp;::&nbsp;
    <a href="http://vcsweb.com">Home</a>

    </li>
    </ul>
    -----------------------------------------

    Note the empty <li></li> in both cases where there are no EZ-pages present.

    Cheers
    Rod.

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

    Default Re: Empty <li> below Home Nav

    Hmm... this does warrant closer inspection. tpl_ezpages_bar_footer.php has no mechanism to wrap each link in <li> tags, nor does ezpages_bar_footer.php, so I didn't take the time to examine tpl_footer.php. That does indeed create the <ul>, but it wraps the entire ez-pages links list in one <li>, which makes no sense at all. Of course, it makes even less sense when there are no links.

    So I stand corrected. Zen Cart code usually very cleverly accounts for numerous possible situations, but in this case it mishandles all except one possible situation (exactly one ez-page link in the footer). I presume that will be structured better in the next version. EZ-Pages Footer Columns is built to make sets of lists correctly now.

 

 

Similar Threads

  1. remove empty space below footer
    By aqswskiing in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Aug 2010, 02:35 PM
  2. Empty space - below logo and below Home & Log in links - how to delete?
    By dabone in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Jan 2009, 01:18 AM
  3. space below logo wrapper/above EZ NAV
    By cpking in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 9 Sep 2007, 01:11 PM
  4. White sapce below header nav bar
    By posteru in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Mar 2007, 10:07 AM
  5. bg color in nav bar just below logo
    By scribbles in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Sep 2006, 01:22 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR