- No products in the cart.
HOME › WordPress Support › Mikmag WordPress theme › submenu not showing up next to its parent
This topic contains 9 replies, has 3 voices, and was last updated by
gail kingswell trueman 4 days, 11 hours ago.
-
AuthorPosts
-
15/04/2013 at 2:20 AM #11333
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); });15/04/2013 at 4:35 PM #11342Hi Malkie,
It looks like you managed to solve the problem. If I’m mistaken, please do tell me
Kevin
16/04/2013 at 1:10 AM #11350no I did not it is not working. please see on theboldedge.com
16/04/2013 at 4:49 PM #11361I 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
Attachments:
You must be logged in to view attched files.17/04/2013 at 12:59 AM #11373when you hover on the graphic design foundations-portfolio does not appear next to it , but appears on top of menu
17/04/2013 at 5:01 PM #11376Hi 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
17/04/2013 at 10:05 PM #11382please tell me how I can fix it now for myself, since I do not know the eta for the update
18/04/2013 at 4:35 PM #11387I 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
18/04/2013 at 10:23 PM #11394thank you
19/04/2013 at 9:20 PM #11402I 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
AuthorPostsViewing 10 posts - 1 through 10 (of 10 total)You must be logged in to reply to this topic.


