Can’t create a SubMenu

Found out the problem was a plugin called TPC! Memory Usage. Not sure on why, but turning it off fixed it, so you know, whatever.

How to remove the Navigation Bar (prim. and sec.) from the Homepage for the Genesis Framework?

you have several options.. A: Create a new page template for your home page Create a home.php file in your child theme directory, of course without the navigation(wish is included in (wp_head) B: Unregister the Primary and Secundary Nav Open your Child theme functions.php file and add this code at the end of the file, … Read more

confused about wp_list_pages() function – how to display selected top pages with all their subpages

When you use include parameter of wp_list_pages you are basically telling it to only include these certain Pages in the list. you should use exclude_tree instead, when using this parameter it will exclude a parent and all of that parent’s child Pages. so something like: $top_pages_to_exclude=”1″; // the top page to be excluded ID, you … Read more

WP navigation list classes

you can use nav_menu_css_class filter hook to remove the classes: add_filter(‘nav_menu_css_class’ , ‘my_nav_menu_remove_class’ , 10 , 2); function my_nav_menu_remove_class($classes, $item){ $my_class = array(‘menu-item-class’); return $my_class; }

Can’t display custom menu using name?

wp_nav_menu() does not have a name argument. Instead, you should use theme_location. With register_nav_menus(), you indicate that you have two locations in your theme where you can display a menu. The user can then create multiple menus, and assign them to these locations. This is why we have the indirection via theme_location. If you know … Read more