Skip Navigation

[Resolved] Hoverable Dropdown

This thread is resolved. Here is a description of the problem and solution.

Problem:

Add hoverable effect to Sub Menus of "Themify Ultra" theme.

Solution:

there isn't such a built-in feature within Layouts plugin, it needs custom codes, for example, you can add some JS codes to show the Sub Menus when you move the mouse over the Menu, you can add below JS codes here:

Dashboard->Toolset-> Layouts CSS and JS-> JavaScript Editor:

jQuery(document).ready(function($){ 
  $("li.has-sub-menu").mouseover(function() {
    $( this ).addClass( "open" );
  });
}) 

It is only an example, you will need to customize it to your website settings

Relevant Documentation:
Jquery documents here:
https://api.jquery.com/mouseover/
https://api.jquery.com/addclass/

This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 0.27 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 9 replies, has 2 voices.

Last updated by theW 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#689449

Hello Toolset,

I've been trying for a couple hours to achieve this simple hover effect with bootstrap inside a layout cell, but haven't been successful... Could you please help me out?

Tell us what you are trying to do?
Create a dropdown menu effect inside a layout cell.

Is there any documentation that you are following?
Yes,
hidden link

Is there a similar example that we can see?
Yes,
Similar to the very top and first green button that auto pops a 3 column sub menu here:
hidden link

What is the link to your site?
hidden link

This effect is to be assign to the 4 boxes right under the banner.
You can see how far I gotten with the first one.

#690201

Hello,

There isn't such a built-in feature within Layouts plugin or Bootstrap, as you know the Layouts plugin is based on Bootstrap framework, according to Bootstrap document:
hidden link

There isn't such kind of feature as you mentioned above, so it needs custom codes. I suggest you check it with our experienced contractors:
https://toolset.com/contractors/

#699127
1.png
2.png
3.png

Ok...
The Theme I'm using:
"Themify Ultra" has that feature built in already...
It's called the "Mega Menu"

There is no coding needed for it, the simple settings are in the Admin Menu Page.
(Please see attached)

I tried placing the exact same menu in a Layout cell directly and also through a widget but the Hover functionality does not work in the layouts for some reason...

Could you please help me find the conflict?

#712657

For the new question:
"Themify Ultra" has that feature built in already ...

That is a compatibility problem with "Themify Ultra" plugin/theme, please provide a download URL for it, and describe detail steps to duplicate the same problem, I need to test and debug it in my localhost, thanks

#714168
menus.JPG

I have tried the file "Themify Ultra" you provided above, there isn't similar problem, see screenshot:
menus.JPG

Please check these in your website:
1) Follow our document to setup the menus cell in Layouts:
https://toolset.com/documentation/user-guides/menu-cell/

2) deactivate other plugins and switch to wordpress default theme, and test again

2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, also point out the problem page URL and Layout URL, I need to test and debug it in my localhost, thanks

#718679

Oh sorry, I should have specified the difference...

Everything works except the 'Hover Function'..

When placing a Mega Menu in a Layouts Cell, it needs to be clicked for the Sub Menus to appear.
What I was trying to achieve is having them open on MOUSE over, and also auto close on MOUSE OUT.
Just like it behaves above.
This functions as a Main Menu in the regular WP places like Top/Footer Menus and Widgets outside Layouts.

Is the the Hover working on your test site inside layouts?.

#722642

As I mentioned above there isn't such a built-in feature within Layouts plugin, it needs custom codes, for example, you can add some JS codes to show the Sub Menus when you move the mouse over the Menu, you can add below JS codes here:
Dashboard->Toolset-> Layouts CSS and JS-> JavaScript Editor:

jQuery(document).ready(function($){ 
  $("li.has-sub-menu").mouseover(function() {
    $( this ).addClass( "open" );
  });
}) 

It is only an example, you will need to customize it to your website settings. see Jquery documents here:
hidden link
hidden link

#738302

Thank you so much for providing the code Luo,
I'll give it a try...

#738829

OK, please update this thread if you need more assistance.

#782778

Thanks again for the great support!