Tag Info

Hot answers tagged

1

As recommended in a similar post: http://wordpress.stackexchange.com/a/156494/74343 1.) Create the menus as you want them, and name them as you like, as an example "mobile-menu" and "desktop-menu". 2.) In your child theme in the header.php you could switch according to the wp_is_mobile() flag like this: if ( wp_is_mobile() ) { wp_nav_menu( array( ...


1

Can you add the complete output code for the navigation menu. The code you pasted seems to be a stripped version. Moreover, WordPress adds 'current_page_item' class to the list item if it is currently being viewed. For more info, check this WordPress documentation on classes added to Navigation menu items.


1

You need to extend Walker_Nav_Menu in such a way that it only outputs, if I understand you, items that are not "zero" depth-- top level. class my_extended_walker extends Walker_Nav_Menu { function start_lvl(&$output, $depth, $args ) { if (0 !== $depth) { parent::start_lvl($output, $depth, $args); } } function end_lvl(&$output, ...


1

this can be done with the "add_menu_page" function you can see example of use on this page : http://codex.wordpress.org/Function_Reference/add_menu_page


1

Add this to functions.php, or put the CSS into a css file which is loaded in the admin screen. This will let the box become resizable, so you can make it taller and see more pages/checkboxes at once. function wp191833_resize_menu_list() { ?> <style type="text/css"> #wpwrap .categorydiv div.tabs-panel, #wpwrap .customlinkdiv ...


1

You are not providing the correct parameter to wp_get_nav_menu_object() function. It needs the menu ID or menu slug but you are providing the menu theme location. Obviously, I can not tell you what is the ID or slug of your menu. One way of getting the menu ID of the menu assigned to theme location is using get_nav_menu_locations(): $menu = ...



Only top voted, non community-wiki answers of a minimum length are eligible