I would like to make the OneEleven theme menu a bit less fancy. The menu slide effects are beautifull, but a bit too much for me after half a hour. I like to get used to positions of a menu item, after a few days you get to the position and clicking items is like second nature . With the current effects you have click first, then move the mouse, click again and the menu changes again from position.
I would like to click the menu's open that I need, and on page change/refresh those items to stay open. I can change the js file to have multiple menu's open at the same time by removing this line: pagemenu.find('ul').slideUp(0);
But on a page change/refresh they are closed again.
What do I need to change to keep the menu's open?
Keep left menu open OneEleven theme
Re: Keep left menu open OneEleven theme
What about:
Code: Select all
// SIDEBAR MENU
$(function() {
var pagemenu = $('#oe_pagemenu');
//EXTRA LINE BELOW
pagemenu.find('ul').slideDown(0);
pagemenu.find('li.current span').addClass('open-sub');
pagemenu.find('> li > span').click(function() {
var ul = $(this).next();
//DISABLED NEXT 3 LINES
//if(ul.is(':visible') === false) {
// pagemenu.find('ul').slideUp(0);
//}
ul.slideToggle(0);
});
});
Re: Keep left menu open OneEleven theme
This code change just opens all the menu's. That's not what I would like.
I would like to be able to just open a few menu's. These opened menu's should stay open during page refresh/switch.
I would like to be able to just open a few menu's. These opened menu's should stay open during page refresh/switch.
Re: Keep left menu open OneEleven theme
I looked at the dropzone and cookies are used there to keep the dropzone open or closed. Will have a look at that when I have the time.
Re: Keep left menu open OneEleven theme
A click on the menuitem icon to the left on the menuitem of the main categories, will open the menu like an ordinary CMSMS menu (no javascript) and will keep it open on page refresh - maybe what you want?
Edit:
Sorry, I just saw you asked for several open at a time.
Edit:
Sorry, I just saw you asked for several open at a time.