Highlighting Main Navigation Menu With Two or More Class Matches
A filter solution could be the nav_menu_css_class filter. A CSS solution could be to use the body_class to make more specific css rules.
A filter solution could be the nav_menu_css_class filter. A CSS solution could be to use the body_class to make more specific css rules.
Your code: ul#menu-menu-1 > li,a:first { margin-left: 0px; } You need to apply the first-child to the list element, and not to the link. You should also not have a comma. Comma indicates a new selection. Try this: ul#menu-menu-1 > li:first-child a{ maegin-left:0px; } *first-child does not work in ie8 and earlier.
WordPress allows the addition of extra nav menus. Add this to your child themes functions file: register_nav_menus( array( ‘secondary_menu’ => ‘My Second Menu’ ) ); Add this to your header.php file or the file where you want to display your extra nav menu. <nav id=”site-navigation” class=”main-navigation” role=”navigation”> <?php wp_nav_menu( array( ‘theme_location’ => ‘secondary’, ‘menu_class’ => … Read more
This question has the same solution as that one. The answer is short, so I post it here as well: In WordPress 3.9 (and still in 3.9.1) there’s a bug concerning the excluded terms in get_adjacent_post(). There’s a plugin to fix that bug.
Auto show a page in a navigation bar is not a standard feature of WordPress. It is a specific feature of theme or plugins. If the theme you are using has this feature and you don’t want it you will need to create a child theme and modify this behaviour. Anyway, what you have described … Read more
From your comments, you opted for a custom page template. Based on that, you can simply perform a custom query to retrieve posts that belongs to a certain tag and category I tend to make use of a tax_query using WP_Query when you quering posts from more than one taxonomy. It is more flexible, specially … Read more
At the end of your Navigation Walker you can just append to the $output like so: $output .= apply_filters( ‘walker_nav_menu_start_el’ , $item_output , $item , $depth , $args ); // This is before the ending list item: $output .= ‘<span>Inner Navigational Text</span>’; To get the post meta (I’m not familiar with ACF) you can use … Read more
I edited your title so as not to give the impression this is a CSS issue – because it isn’t. Is this a custom created menu item? If so, you may need to add the trailing slash in menu admin.
Grouping parent categories into sections
Each WP menu item that contains a submenu haves the “menu-item-has-children” class for <li> you can use that class for add a pointer for sub menu: For example the simple example can be this but you can use that for creating better pointer for your site: .menu > li.menu-item-has-children > a:after{ content: “(have child)”; }