Add more levels to menu
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!
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!
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
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.
There should be something like this in the CSS: .menu ul ul ul { left: XXpx; } Try changing that to .menu ul ul ul { right: XXpx; } But nothing can be said for sure without seeing the CSS first.
Bootstrap 3 and WordPress menu navigation menu highlighting
You can get part of the way there by querying the page template using get_page_template_slug() inside your loop. For example, you can do something for non-default page templates: if ( ” != get_page_template_slug( $page->ID ) ) { // This page uses a custom page template; // do something } Or, you could look for your … Read more
buuut the problem is that the list of elements is outside the ul of the menu in itself. I think part of the problem might be that wp_list_categories() is in echo-mode by default so $latestpost is always empty. Please try it with these parameters instead: // Get the categories $latestpost = wp_list_categories( array( ‘orderby’ => … Read more
Try replacing ‘menu_id’=> ‘nav’ by ‘items_wrap’ => ‘<ul id=”nav”>%3$s</ul>’