wp_nav_menu returns menu list in ascending order. How can I arrange the menu same as dashboard menu

Please use below code in your theme funcation.php file function my_asc_nav_menu($menu, $args) { if (isset($args->reverse) && $args->reverse) { return array_reverse($menu); } return $menu; } add_filter(‘wp_nav_menu_objects’, ‘my_asc_nav_menu’, 10, 2); And also use your wp_nav_menu function as below: wp_nav_menu(array( ‘theme_location’ => ‘primary’, ‘container’ => ‘ul’, ‘menu_class’=> ‘top-menu’, ‘reverse’ => FALSE, ) );

header menu structure: cannot add additional menu items without alignment issues

Please use below code in your header.php file <?php global $gaming; ?> <!DOCTYPE html> <html <?php language_attributes(); ?> class=”no-js”> <head> <meta charset=”utf-8″> <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <title>Streamer</title> <!– fav icon –> <?php if($gaming[‘site_favicon_upload’][‘url’]!=””){?> <link rel=”icon” href=”https://wordpress.stackexchange.com/questions/310192/<?php echo $gaming[“site_favicon_upload’][‘url’];?>” sizes=”16×16″> <?php }?> <?php wp_head();?> </head> <body <?php body_class();?>> <script> jQuery(document).ready(function(){ jQuery(“.nav ul > … Read more

How to handle many different menus?

If I understand your question right, here is the code to show the list of page siblings (having the same parent). Call the function from the sidebar. <?php function show_page_siblings( $id ) { $parent_id = wp_get_post_parent_id( $id ); // show only on child pages if( 0 == $parent_id ) { return; } $siblings = get_pages( … Read more

How to use buttons elements for tgetWordPress menu items?

The following is a solution, though uses extra PHP processing… <?php $options = array( ‘echo’ => false, ‘theme_location’ => ‘buttons’, ‘items_wrap’ => ‘%3$s’, ‘menu_class’ => false, ‘menu_id’ => false, ‘container’ => ‘false’, ‘container_class’ => false, ‘container_id’ => false, ‘before’ => ‘<button class=”btn btn-primary mx-3 d-none d-md-block” type=”submit”>’, ‘after’ => ‘</button>’ ); $menu = wp_nav_menu($options); $output … Read more

current-menu-item class in CSS

If you want to use different styling for active menu items on a single page website or automatically select correct menu items you should use a jQuery plugin like this one.

How I can overlap my menu in my header picture

I just did this on one of my sites today. This is what i have done on css. header.header-class { background-color: rgba(255, 255, 255, 0); } div.main-content-className{ margin-top:-75px; } here change header-class and main-content-className with your theme class name and if necessary make it more margin on top until it will be on top. Hope … Read more