Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My website menu is not displaying properly in IE. I'm not sure where else I can get answers for this.
I've attached a screen shot for both IE7 and IE9 for the errors - however, the menu works properly in other browsers.
Thanks for your help!
Comment | File | Size | Author |
---|---|---|---|
screen-marinelli-ie.jpg | 227.46 KB | 3charlotte |
Comments
Comment #1
F0rumus3r CreditAttribution: F0rumus3r commentedI don't have an answer for you but I am experiencing a similar issue with my drop downs on IE9. If I figure out a solution I will update you.
Comment #2
3charlotte CreditAttribution: 3charlotte commentedThanks for keeping an eye out for this one, but I found the fix for this.
I had some Menu links that were disabled, and for some reason, that is what was causing IE9 to break the Menu Navigation on the front end.
After I moved the disabled links down after the last active link - Menus started rendering properly on IE9.
I can't explain why IE would be the only browser that this happens in...
Comment #3
3charlotte CreditAttribution: 3charlotte commentedComment #4
F0rumus3r CreditAttribution: F0rumus3r commentedGlad to hear! Bizarre that it would do that!
Comment #5
fietserwinWhen menu items are disabled the html that gets rendered is invalid, so this is a bug and pretty major, though it only occurs with disabled menu items. A quick inspection of the code lead me to:
file: marinelli/theme/theme.inc
So the {li} is not emitted if the link is hidden, but the {/li} is. Changing this to:
Works for me. I hope the theme maintainer can use this to see if my findings are correct and if this might occur in other places as well.
The fact that only IE gets messed up, is probably because they have different html parse error handling.
Comment #6
3charlotte CreditAttribution: 3charlotte commentedThank you!
I also just moved my disabled links to the end of my menu, that way I wouldn't touch/break any code.
Comment #7
jjsmyth1984 CreditAttribution: jjsmyth1984 commentedHi Guys,
I am having the same issue and can't seem to identify a fix. Is anybody else having this same issue? Would be great to get a set in stone solution to this bug as I love this theme :)
Any feedback at this time I would be super grateful.
Cheers,
Joe