WordPress Navigation Menu Alignment

WordPress guide & tutorial to learn how to change logo position and navigation menu alignment on the website header bar in two methods

Updated on April 11, 2024
WordPress Navigation Menu Alignment

WordPress guide & tutorial to learn how to change logo position and navigation menu alignment on the website header bar in two methods.

WordPress Navigation Menu Alignment

Firstly, WordPress Navigation Menu Alignment: In this tutorial on Visualmodo knowledge base, we will show how to change your WordPress site header navigation menu and company/site logo alignment.

WordPress Navigation Menu Alignment
WordPress Navigation Menu Alignment

You can see all the navigation menu positions by navigating on WORDPRESS DASHBOARD > VISUALMODO > THEME OPTIONS > HEADER > HEADER LAYOUT < section.

You need to select the parts that better fit your design, and after that, click on the ‘SAVE CHANGES’ button.  NOTE: Make sure you already have a main menu created and set adequately. So, before the menu position selection follow this tutorial.

According to the menu layout, the choice you will need to set your menus under. WP > Appearance > Menus > as Centered Header – Left Menu / Centered Header – Right Menu and set it as ‘Main Menu’  to correctly call the menus on your header. 

WordPress guide tutorial learn how change logo position navigation menu alignment website header bar

WordPress Navigation Menu Alignment – Visualmodo Guides – See the video below for more information about WordPress header customization and edition options for menu alignment, and much more.

How To Center A Logo On Your WordPress Site?

Check this video tutorial and keep reading this WordPress guide & tutorial to learn how to change logo position and navigation menu alignment on the website header bar in two methods.

Video Tutorial to Customize Header Nav Menu

Not Using a Visualmodo Theme Yet? WordPress Navigation Menu Alignment

Each WordPress theme has its own menu and options for customization. This tutorial explains how to align your nav bar menu in WordPress using Visualmodo themes, so if you’re using another theme, don’t hesitate to get in touch with their developer or open a support post on the WordPress forum.

Alt Option to Align Navbar Menu in WordPress Using CSS

To align the navbar menu in WordPress, you can use CSS code. Here’s a step-by-step guide:

  1. Log in to your WordPress admin dashboard.
  2. Go to “Appearance” and click “Customize” to open the theme customizer.
  3. You should see a list of options on the left-hand side of the customizer. Look for the option related to “Additional CSS” or “Custom CSS” (the wording may vary depending on your theme).
  4. Click the “Additional CSS” or “Custom CSS” option to open the CSS editor.
  5. In the CSS editor, you can add the below code to align the navbar menu:
  6. Customize the CSS code based on your desired alignment. You can choose either “flex-start” to align the menu to the left, “flex-end” to align it to the right, or “center” to align it in the center.
  7. After adding the CSS code, click the “Publish” button to save your changes.
  8. Visit your website to see the aligned navbar menu.
/* Align navbar menu to the left */
.navbar-nav {
  justify-content: flex-start;
}

/* Align navbar menu to the right */
.navbar-nav {
  justify-content: flex-end;
}

/* Align navbar menu to the center */
.navbar-nav {
  justify-content: center;
}

Please note that the CSS code assumes your navbar menu uses the “navbar-nav” class. If your theme uses a different style for the menu container, you may need to modify the CSS selector accordingly.

Additionally, it’s essential to ensure that your theme’s HTML structure supports the alignment changes. Some themes may require additional CSS modifications or customization options to achieve the desired alignment.

Can’t find what you’re looking for?

Contact Support