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.
I have read some threads related to this, and applied all that is proposed in them, but to no avail.
ISSUE: Dropdown menus don't work in IE7... Weird: Hovering the tab, only part of it changes color (the left part remains unchanged color)
In my page.tpl.php:
<div id="primary-menu-wrapper" class="clearfix">
<?php if ($primary_links): ?>
<div id="primary-menu">
<?php print $primary_links_tree; ?>
</div>
<?php endif; ?>
I implemented the following in template.php in order to have parent items not-linkable (by creating an empty-link as node/28):
function acquia_marina_menu_item_link($link) {
if (empty($link['localized_options'])) {
$link['localized_options'] = array();
}
if ($link['type'] && $link['href'] == 'node/28') {
return '<a href=\'javascript:void(0)\' class=\'nolink\'>'. $link['title'] .'</a>';
}
else {
return l($link['title'], $link['href'], $link['localized_options']);
}
}
...but if I disable this, dropdown menus still don't work in IE7 anyway, so I don't think this is the problem, but maybe I'm wrong.
Comments
Comment #1
alextronic CreditAttribution: alextronic commented...
Comment #2
alextronic CreditAttribution: alextronic commentedWell, now the 'Weird Issue' (by which hovering the menu tabs left part of them didn't change color) has been fixed -- after dealing with
scripts.js
But, now I can describe a little more what is going on:
IN FIREFOX AND CHROME:
IN IEXPLORER7:
...so...
I still don't know if the snippet in my 1st post has something to do (I don't think so)...
Wild Guess
I don't know why or how, but maybe the issue is in this line of
template.php
:$vars['primary_links_tree'] = menu_tree(variable_get('menu_primary_links_source', 'primary-links'));
I have Node Access Module installed but does not seem to be affecting. No other menu-access-modules or stuff of that sort. Only CSS-enhanced Acquia Marina.
Please, anyone a hint or insight??? Thank you again.
Comment #3
alextronic CreditAttribution: alextronic commentedIt seems the style has nothing to do. I replaced my stylesheet with the standard style.css from acquia_marina theme and, despite the evident changes in layout, the menus behave the same way.
I have installed NODE ACCESS Module (I think I have this well configured, all the permissions seem to be OK, and if I access the page that is not dropped down in the menu, I can see it, so....... ¿¿?¿??¿?¿)
Please, I beg you, if anyone has a hint or insight, I'm clueless about this.
Comment #4
alextronic CreditAttribution: alextronic commented...
Comment #5
alextronic CreditAttribution: alextronic commentedReally confused. Sorry for editing issue settings too much...
Comment #6
alextronic CreditAttribution: alextronic commented.bump.
Comment #7
emptyvoid CreditAttribution: emptyvoid commentedSorry to pop our bubble, but I don't see how your issue has anything to do with this module. The problem sounds more like a problem with your theme, javascript, and css of which this module would not affect.
Perhaps you should look for the discussion or issue forum for Aquia's theme?
Until you provide some issue that relates to security for a node I don't see how your post is relevant?
Comment #8
alextronic CreditAttribution: alextronic commentedThis post WAS originally an Acquia theme issue, but after some time I realized that the dropdown menus stayed BEHIND the main content area ONLY when visiting as an anonymous user. If you logged in, then the dropdown menus appeared IN FRONT of the main content area, hence being visible. Or something very much like that.
The only module that I have installed that might be impacting visibility in any way is Node Access.
And the post didn't try to be relevant. It was only trying to ask for help.