Wordpress submenu


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. jQuery(document).ready(function(){
  2. jQuery(".menu-item ul").hide();
  3. jQuery(".current-menu-item").parents("ul, li")
  4. .map(function () {
  5. jQuery(this).show();
  6. });
  7. jQuery(".current-menu-item ul:first").show();
  8. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.