removing function to add home to page menu (and fallback wp_list_pages since we automatically do it)
This commit is contained in:
@@ -28,14 +28,6 @@ register_nav_menus(
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// make sure the menu fallback (wp_list_pages) adds the home link
|
|
||||||
function roots_page_menu_args($args) {
|
|
||||||
$args['show_home'] = true;
|
|
||||||
return $args;
|
|
||||||
}
|
|
||||||
|
|
||||||
add_filter('wp_page_menu_args', 'roots_page_menu_args');
|
|
||||||
|
|
||||||
// remove container from menus
|
// remove container from menus
|
||||||
function roots_nav_menu_args($args = ''){
|
function roots_nav_menu_args($args = ''){
|
||||||
$args['container'] = false;
|
$args['container'] = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user