Responsive menu on genesis theme [closed]

I answered earlier but the link I provided doesn’t exist anymore. So, I’ll post the code here in hopes that it is what you’re looking for. In your functions.php, add this snippet to create the markup: /* Mobile Menu —————————————————————————————-*/ add_action( ‘genesis_site_description’, ‘ls_mobile_menu_toggle’, 5 ); function ls_mobile_menu_toggle() { echo ‘<div class=”menu-toggle”>’; echo ‘<li></li><li></li><li></li>’; echo ‘</div>’; … Read more

wp_list_pages Hierarchical Help

After you global $post, you can use the core WordPress function get_post_ancestors() to retrieve the parent pages. Example $ancestors = get_post_ancestors($post); if($ancestors){ foreach(array_reverse($ancestors) as $post_id){ $ancestor_page = get_post($post_id); } } Then, to retrieve all child pages of the current page, you could make it easy by using a custom function. Place your custom function in … Read more

Appearance > Menus > Left Sidebar > Add Toggle

You custom box can be added with adding meta box on nav menu page. So – function Register_My_Nav_Menu_Metaboxes(){ add_meta_box( $id, $title, $callback, ‘nav-menus’, ‘side’ ); } add_action(‘load-nav-menu.php’, ‘Register_My_Nav_Menu_Metaboxes’); I hope you know how to add the metabox $id, $title, $callback and utilize it.

Custom ul class

Menu class is nav navbar-nav not collapse navbar-collapse navbar-ex1-collapse. wp_nav_menu(array(‘theme_location’ => ‘primary’, ‘menu_class’ => ‘nav navbar-nav’));