Home › Forums › Mikmag WordPress theme › submenu not showing up next to its parent
- This topic has 1 reply, 3 voices, and was last updated 11 years, 9 months ago by Anonymous.
-
AuthorPosts
-
-
at #11333Malkie FriedmanMember
I am having a problem on my site: theboldedge.com that the submenus are not showing next to the parent menu item, it is stuck to the top…would you know what I would need to change in the theme.js file. here is the relevant code for the menu from there. // Menu // jQuery(’#theme-menu-main li’).each(function(index, element) { var item = jQuery(element); var itemPadding = parseFloat(item.css(‘padding-left’)); var itemMargin = parseFloat(item.css(‘margin-left’));
var subMenu = item.children('ul'); var isSubmenu = item.parent().hasClass('sub-menu'); });
var ANIMATE_SPEED = 100;
subMenu.hide();
// Add dropdown indicators // Menu root var imageWidth = 0; if (!isSubmenu && subMenu.length) { var image = jQuery(''); image.appendTo(item); imageWidth = 16;
// Submenus in submenus } else if (isSubmenu && subMenu.length) { var raquo = jQuery(' » '); raquo.appendTo(item.children('a')); }
// Hover functions item.hover(function() { //var top = item.position().top; //var left = item.position().left;
var top = item.css('top'); var left = item.position().left; if (isSubmenu) { top = -1 * (item.height()/3) ; left = item.outerWidth(true); } else { top += item.height(); left += itemPadding + itemMargin; }
subMenu.css('top', top); subMenu.css('left', left);
subMenu.stop(true, true).fadeIn(ANIMATE_SPEED * 3);
}, function() { subMenu.stop(true, true).fadeOut(ANIMATE_SPEED * 3); });
-
at #11342AnonymousInactive
Hi Malkie,
It looks like you managed to solve the problem. If I’m mistaken, please do tell me
Kevin
-
at #11350Malkie FriedmanMember
no I did not it is not working. please see on theboldedge.com
-
at #11361AnonymousInactive
I think I might not properly understand what the problem is then.
I’ve added two screenshots to this post displaying both the submenus i see on your website and those i see on ours. I don’t see anything strange happening on yours. Could you explain me what the problem is exactly?
Kevin
-
at #11373Malkie FriedmanMember
when you hover on the graphic design foundations–portfolio does not appear next to it , but appears on top of menu
-
at #11376AnonymousInactive
Hi Malkie,
I see the problem is in the third-level menus (sub-sub-menus) I initially thought you meant second-level menus (sub-menus).
I see the problem you mean now and am addressing this to our development team who are currently working on a mikmag update. That way they’ll be able to take a look at this issue for the upcoming update.
Kevin
-
at #11382Malkie FriedmanMember
please tell me how I can fix it now for myself, since I do not know the eta for the update
-
at #11387AnonymousInactive
I have requested for our developer working on this theme’s updates to share the fix details with you on this post if it’s a small fix to help you along earlier than the update itself.
Kevin
-
at #11394Malkie FriedmanMember
thank you 🙂
-
at #11402gail kingswell truemanMember
I too have the same problem so if there is a small interim fix for this problem I would be keen for you to share it with us all. Thanks in advance for any quick help you can provide for this issue.
Gailstorm
-
-
AuthorPosts
- You must be logged in to reply to this topic.