[Venture Theme - Mega Menu/Drop-down Menu] Categories that have subcategories appear on-hover

Solved
Highlighted
Excursionist
37 2 4

Hello!

 

We're currently developing a theme, so here's a preview link instead: https://92cggj8qpcxttzv0-3935153.shopifypreview.com

 

I've done the solution as indicated here (for the main navigation items): http://www.expertshopify.com/shopify-code-snippets/shopify-venture-theme-activate-megamenu-when-mous...

 

Still got a small problem, though: I want the sub-categories to also appear on hover. (The sub-categories are the ones within the red box.)Screenshot-(11).png

 

Has anyone found a solution for this?

 

Would appreciate the help.

Email: ela.v.tsm@gmail.com
0 Likes

Success.

Excursionist
37 2 4

Ah, I seem to have found the solution.

 

If you've followed the instructions to the link above, add this at the end of expertshopify.js:

$('.site-nav__dropdown-container').hover(function(){
  	console.log("triggered");
	$(this).children('a').addClass('meganav--active');
    $(this).children('div').addClass('meganav--active');
},
    function() {
  	$(this).children('a').removeClass('meganav--active');	
  	$(this).children('div').removeClass('meganav--active');
})
Email: ela.v.tsm@gmail.com
0 Likes