Skip to main content
All CollectionsTroubleshooting and FAQsFrequently Asked QuestionsHeader and Footer Areas
How to Add a Custom Call to Action Button to the Divi's Menu
How to Add a Custom Call to Action Button to the Divi's Menu

Learn how to add a custom call to action button to Divi’s menu to boost user engagement and drive conversions on your website.

Updated over 3 months ago

Enhancing your website's navigation with a prominent call to action (CTA) button can significantly improve user engagement and conversions.

In this article, we will show you how to add a custom call to action button to Divi's menu.

Whether you want to highlight a special offer, encourage sign-ups, or direct visitors to an important page, our step-by-step guide will help you create and integrate a standout CTA button seamlessly into your menu.

Learn how to customize the button’s appearance, position it effectively within your menu, and ensure it grabs the attention of your visitors, all using Divi's powerful tools and settings.

Create the button and add it to the main WordPress Menu

  1. Go to WordPress Dashboard → Appearance → Menus

  2. Edit the WordPress Menu which has been set as the Primary Menu

  3. Use the Custom Links option to add a new Menu item

  4. Set the URL of the page that needs to be opened when the button is clicked

  5. Set the Link Text. This is going to be the text that the button displays

  6. Set the custom CSS class of cta-button to the Menu item

Note: if you are not seeing the CSS Classes field, follow these steps:

  1. Click on the Screen Options button

  2. Ensure that the CSS Classes option is checked

Divi - Create and add a custom Menu item

Style the new CTA button

  1. Go to Divi → Theme Options → General → Custom CSS

  2. Paste in the following CSS code:

    .cta-button {
    border: 1px solid red;
    border-radius: 19px;
    background: blue;
    box-shadow: 0px 0px 12px 3px violet;
    transition: all .3s 0s;
    }

    .cta-button a {
    padding: 18px !important;
    color: white !important;
    }

    .cta-button:hover {
    transform: scale(1.1);
    transition: all .2s 0s;
    }

The result will be as shown in the screenshot below:

Divi - Custom CTA button in the WordPress Menu
Did this answer your question?