Wordpress - only show sub menu when parent selected (for wp_nav_menu)


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



Copy this code and paste it in your HTML
  1. .sub-menu { display: none; }
  2. .current_page_item .sub-menu, .current_page_parent .sub-menu { display: block; }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.