This tutorial will explore how to customize WordPress menu buttons. Whether the menu is for your main navigation, within a widget or placed anywhere else throughout your site.
For this you will need some basic experience with CSS and experience with adding CSS to WordPress if you’re unsure of this take a look at our ‘Adding CSS to WordPress tutorial’.
The CSS Code:
Firstly head over to the menus section of your website and select the menu that you’d like to edit for the dropdown list.
You will then need to click screen options at the top of the page and then ensure that CSS classes are enabled within the section. This will allow you to assign a CSS class to each menu item.
From here when you click on a menu item you will see the option to add a CSS class to the menu item. Simply call this something relevant such as featured-button for example. If you’re setting this for multiple buttons you will want to set them as something like featured-button-1 etc. this will help you to keep track of your code when it comes to editing the CSS for those buttons.
From here you can then add CSS to that class for example:
.featured-button {
Background-color: orange;
}
To focus the CSS on the button text you will also need to add the ‘a’ class to the selector for example:
.featured-button a {
Color: white;
}
The above code sets the colour of the ‘a’ class within the button which will be the main text link for the button. This will need to be something clear and easy to read to make your button user friendly.
This is a quick tutorial on adding customizing WordPress Menu buttons is just an introduction to creating custom menu designs we hope it helped you to get an idea about the process involved with customising the buttons and making the process clearer. Please take a look around the site for more CSS tutorials and to learn in-depth about how to create amazing websites.
Further reading:
CSS Button Hover
We’d appreciate a share or any comments if you found this useful, thanks!








