Posted By

spraitas on 10/07/10


Tagged

wordpress jquery


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

tmbrenneke
jplr


Wordpress submenu


 / Published in: JavaScript
 

  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  

You need to login to post a comment.