Show only second level menu items? [duplicate]
I do not know how good your programming skills are, but the example under Using a Custom Walker Function here should give you a good idea of what you have to do. If you need further advice, comment
I do not know how good your programming skills are, but the example under Using a Custom Walker Function here should give you a good idea of what you have to do. If you need further advice, comment
You should look on ow WordPress Plugin Api works. When you add a filter, the function that hook into that filter receive the argument from the function: apply_filters. This function pass at least one argument, but can pass more, and always aspect a value returned. So if you can write add_filter( ‘walker_nav_menu_start_el’, ‘description_in_nav_el’, 10, 4 … Read more
Go to wp-content/themes/templatename/ and then in header.php go to his line ‘depth’ => apply_filters( ‘yiw_main_menu_depth’, 3), Just change the number and done!
Display Post by menu order
Main Menu Theme Different Output Print
Show content of subdomain from specific menu-item?
you can do it with jQuery, but you’ll need to find that menu item’s class or ID. Here’s an example: <?php global $display_name; get_currentuserinfo(); ?> <script> jQuery(document).ready(function($) { $(‘.your-class a’).text(‘<?php echo $display_name;?>’); }); </script>
What a pitty that nobody responded. I had a hard way checking the walker class first before I found out that it’ll be much easier with wp_get_nav_menu_items() This is what I came up with. Not perfect but it works (only two levels which is enought for my page). $menu_name=”primary”; if ( ( $locations = get_nav_menu_locations() … Read more
Yes you can. <?php $args = array( ‘theme_location’ => ‘primary’, //change this value with coresponding menu area ‘menu_id’ => ‘main-menu’, //change this value with wanted menu ); wp_nav_menu($args); ?> menu_id is the name of menu created in WP admin>Menus. I create menu with name “Main menu” so I put main-menu there. That menu is connected … Read more
If you’re using the WordPress menu system in the admin interface, then you could simply add the Parent Menu Item 2 to the menu again and place it as a child element under the parent version of it. I don’t see any need to even extend the WordPress Walker_Nav_Menu.