Change hmenu to expand on click??


Author Message
speedyp

Posted: 4/5/2014
Quote message 

Anyone know how to change the behaviour of a published theme's horizontal menu from expand on hover to expand on click?


 
Kozbot

Posted: 4/5/2014
Quote message 

I'm trying to do it the other way... Have it all open permanantly... I hope someone can respond soon!!! :-)
 
Stupid Me

Posted: 4/5/2014
Quote message 

Can you post the style.css in a jsfiddle and set it to collaboration? If you're not a member, you can do the same in google drive and give the link. Make sure it's set to share.
 
speedyp

Posted: 4/6/2014
Quote message 

I cheated and used the "ubermenu" plugin which has expand on click option.

Not sure the answer lies in the css though? It would just be the standard artisteeer 4.1 css for a horizontal menu. Thought it would need a js edit ?

Artisteer has options for expand on click or hover when creating a theme, but seems to be only available on the responsive (hamburger) menu though :-<
 
Stupid Me

Posted: 4/7/2014
Quote message 

If you want to call new javascript or jquery from your menu you have to edit the wordpress core files, not just the theme file.

I dislike doing this because things break with version updates, so I use css whenever possible and it is why I suggested it to you.

I tried it, and it seems you can do it in the css by adding a trigger and click. It sort of defeats the purpose of wordpress since you also have to segregate the menu items, which means a code edit for every new page. You were right to go with a plugin.
 
speedyp

Posted: 4/7/2014
Quote message 

No worries - thanks for thinkiing about it anyway :-)