How to create a beautiful Divi button

by | Jan 2, 2018 | Divi tutorials | 10 comments

How to create a beautiful Divi button

Today I’m sharing a step by step tutorial for 3 custom Divi buttons with a nice hover effect. You can create the buttons with this step by step tutorial.

You can view the buttons in action on this demo website.

Custom button 1

Place a Button module and use these settings:

Content tab
Fill in a button text and a link

Design tab
Text color: Light
Use Custom Styles for Button: Yes
Button Text Size: 18px
Button Background Color: #ef4b4c
Button Border Width: 0
Button Border Color: rgba(255,255,255,0)
Button Border Radius: 0px
Button Letter Spacing: 2px
Font Style: Uppercase
Show Button Icon: yes
Button Icon: Choose your icon
Only Show Icon On Hover for Button: No
Button Hover Background Color: #d53f41
Custom Padding: Right: 65px, Left 25px
Box Shadow:
Box Shadow Horizontal Position: 0px
Box Shadow Vertical Position: 2px
Box Shadow Blur Strength: 18px
Box Shadow Spread Strength: 0px
Shadow Color: rgba(0,0,0,0.3)

Advanced tab
CSS Class: custom_button_1

Place the following CSS code in your child theme or in Divi > Theme options > Custom CSS

Change the color codes for your own color scheme.

Custom button 2

Place a Button module and use these settings:

Content tab
Fill in a button text and a link

Design tab
Text color: Light
Use Custom Styles for Button: Yes
Button Background Color: e83600
Button Border Width: 0
Button Letter Spacing: 1px
Font Style: Uppercase
Show Button Icon: yes
Button Icon: Choose your icon
Only Show Icon On Hover for Button: Yes
Box Shadow:
Box Shadow Horizontal Position: 0px
Box Shadow Vertical Position: 2px
Box Shadow Blur Strength: 18px
Box Shadow Spread Strength: 0px
Shadow Color: rgba(0,0,0,0.3)

Advanced tab
In the CSS Class field you can use one of these 4 classes depends on the hover effect you want to achieve.

For the first button hover effect as on the demo use:
custom_button_2_up

For the second button hover effect as on the demo use:
custom_button_2_left

For the third button hover effect as on the demo use:
custom_button_2_down

For the fourth button hover effect as on the demo use:
custom_button_2_right

Custom button 3

Place a Button module and use these settings:

Content tab
Fill in a button text and a link

Design tab
Text color: Light
Use Custom Styles for Button: Yes
Button Text Size: 18px
Button Border Width: 0
Button Border Radius: 25px
Button Letter Spacing: 1px
Font Style: Uppercase
Custom Padding: Top: 12px, Right: 25px, Bottom: 12px, Left 25px;
Box Shadow:
Box Shadow Horizontal Position: 0px
Box Shadow Vertical Position: 2px
Box Shadow Blur Strength: 35px
Box Shadow Spread Strength: 0px
Shadow Color: rgba(0,0,0,0.3)

Advanced tab
CSS Class: custom_button_3

To change the background color of the button, you have to change the color codes of:
background-color:
background-image:

Join today

Free Membership

Sign up for a Free membership and get access to this and all other free Divi layout packs, cheat sheets, exclusive discounts and much more.

If you have any questions you can ask them in the comments below.

10 Comments

    • Mark

      Did you add the CSS class and placed the custom CSS in Divi > Theme options ?

      Reply
      • Ildikó

        Yes, I did.

        Reply
  1. bounzou sami

    thank u its verry good !

    Reply
    • Mark

      Hi Kristine,

      If you go to the buttons advanced tab > Custom CSS > Main element

      And place the following CSS:

      width:50% !important;

      You can cjabge the %number to whatever you like

      Reply
  2. jrockoford

    I can’t use a button module. Is it possible to just use CSS for everything?

    Reply
    • Mark

      Hi,

      Are you not you working with Divi?

      Reply
  3. jrockoford

    Yes, I am. But I want to modify a button that’s used with a plugin. The plugin works with shortcodes so the only way to modify the button and create something as satisfying as the buttons you created is to use the plugin button class and include all the code as CSS. I can’t insert a button module. Hence the complication.

    Reply
    • Mark

      Ahh ok I see, the CSS code in my examples will not be enough you have to write some more CSS to make it work.

      Unfortunately I don’t have full button CSS snippets ready. Otherwise I would give them to you.

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

12 Shares
Share12
+1
Tweet
Share
Buffer