How to make layered Drop down navigation in a WordPress theme?

I need the same menu as on this site http://www.salesforce.com/aloha.jsp in the wordpress theme. Layered drop down mouse. Does anyone know a trick, methods or wp-plugin todo samelike this.

+3
source share
4 answers

You can also do this in direct CSS using the Suckerfish method .

And here is an alternative version that claims to be more accessible.

EDIT . Also, here's a nice article by Jacob Nielsen about drop-down heuristics .

+2
source

jQuery Wordpress, jQuery , . , nav-bar ( - ).

0

, , , Superfish jQuery, . Superfish - suckerfish, jQuery framework. . Superfish jQuery.

Superfish Wordpress http://www.tec-talk.com/integrate-superfish-dropdown-with-wp_nav_menu-how-to.html

0
Slide down and slide up all tears of wordpress menu items on click function:

<script> 
jQuery('.sub-menu').hide(); 
jQuery(document).ready(function($){
  jQuery('li.menu-item-has-children a').on("click", function(e){ 
    e.stopPropagation();
    e.preventDefault(); 
    if(!$(this).closest('li').hasClass('menu-item-has-children')){
       window.location.href = $(this).attr('href');
        } 
    jQuery(this).next('.sub-menu').slideToggle();
  });
}); 
</script>
0

Source: https://habr.com/ru/post/1708008/


All Articles