WordPress.org

Ready to get started?Download WordPress

Forums

NAV php menu disappears in IE7 and IE8 (9 posts)

  1. hexagoncircle
    Member
    Posted 2 years ago #

    On shakymolars.com, the php menu does not show up at all in Internet Explorer 7 or 8.

    header.php:

    <nav>
        <ul>
        	<li><?php wp_nav_menu(array('menu' => 'Main Nav Menu')); ?></li>
        </ul>
        </nav>

    functions.php:

    if (function_exists('register_nav_menus')) {
    		register_nav_menus(
    			array(
    				'main.nav' => 'Main Navigation Menu'
    			)
    		);
    	}

    Any ideas why? It seems to show up in all the other browsers just fine.

  2. juliabarry
    Member
    Posted 1 year ago #

    I'm having the same issue in all IE versions with similar code:

    <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>

    I tested out for the classic IE margin/float/width/absolute positioning/z-index issues, and it really seems like the menu items are literally not there, not just getting blocked out by something else.

    My site is http://griefland.com. (It's behind an Under Construction plugin while working.)

    Thanks for your help!

  3. No one can really help if it's behind that plugin. Check your code errors with http://validator.w3.org/

  4. juliabarry
    Member
    Posted 1 year ago #

    I can make a username/pass for help, but not sure if I'm allowed to post that here?

  5. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Please don't. Never, ever, post login information on a public forum.

  6. juliabarry
    Member
    Posted 1 year ago #

    That's what I thought. So how can I create a user so you guys can help? Much appreciated!

  7. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    Julia,
    The hierarchy of child elements through the wp_nav_menu() function means the CSS for the menu will break in older Internet Explorer browsers.
    A specific example is through the CSS selector li > ul.

    Perhaps this has something to-do with your issue.

  8. juliabarry
    Member
    Posted 1 year ago #

    Yeah, it sure seems like IE isn't responding correctly to wp_nav_menu, but it's also broken even in newer versions, so I'm really not sure where the issue is.

    Do you have any resources I can read about the li > ul issue?

    Should I replace wp_nav_menu with an older function?

    Blargh. Thanks for your help!

  9. juliabarry
    Member
    Posted 1 year ago #

    Actually, it turned out that my renderer just wasn't showing it right, and the menu *does* work in IE. I was able to fix other issues through CSS tweaks. Thanks guys!

Topic Closed

This topic has been closed to new replies.

About this Topic