button in Wordpress Menu

Do you want to Know how to add a Call to action Button in the WordPress Navigation, then follow this article.

As you know there is no direct way to add button in the navigation menu in most of the WordPress themes. So, Either you can use a plugin for this or use custom CSS to achieve this.

I don’t recommend you should use a plugin for a simple task like this. You can easily add button in WordPress Menu by following this article.

Steps to Add Button in WordPress Menu

In the WordPress dashboard, go to Appearance > Menus.

Select the menu to which you want to add the button.

Click on Custom Links. Here, you will need to input the URL for the link and the link text which will appear as the button’s label.

Click Add to Menu.

In the menu item settings (still under Appearance > Menus), click on the newly added custom link to expand its options.

Custom link in WordPress Menu

If you do not see an option to add a CSS class, click on Screen Options at the top right of the screen and check the CSS Classes option.

CSS class in Wordpress Menu

Add a custom CSS class to the menu item (e.g., menu-button).

Navigate to Appearance > Customize > Additional CSS. Add custom CSS to style the link as a button. Here’s an example of CSS you might use:

#primary-menu .menu-button a {
    padding: 15px 20px;
    background: #da394a;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    border-radius: 8px;
    width: fit-content;
    border: 1px solid #da394a;
    line-height: 1;
    margin-left: 20px;
    transition: all .2s ease-in-out;
    font-family: open sans, sans-serif;
}

#primary-menu .menu-button a:hover {
    background-color: #E14D43;
    transform: scale(1.1);
}

This CSS will style the link to look like a button with a red background and slightly rounded corners. You can customize the colors, padding, and other properties according to your site’s design.

After adding the CSS, save your changes by clicking Publish in the Customizer. Then, visit your site to see the new button in your navigation menu.

Belligerent Leaf 1

This method allows you to add a stylized link to your WordPress menu that functions visually as a button, enhancing the navigation experience without the need for additional plugins.

Benefits of Adding a Button in Navigation Menu

A button in the navigation menu stands out from regular links, drawing attention to important actions you want users to take, such as signing up, booking a service, or contacting the business. This can lead to higher conversion rates.

Buttons are more interactive and visually appealing than text links, which can encourage users to click and engage with your site more effectively.

Buttons can be styled differently from the rest of the menu, which helps to break the monotony of the design and adds a touch of style to your website’s overall look.

Conclusion

I hope you have learned how to Add a button in WordPress Menu by following this article.

If you have any doubt, You can ask in the comment section, I will try to help you ASAP. Don’t forget to share this trick to others.

Similar Posts

Leave a Reply