Styling Buttons with Divi’s New Background Options (6 Designs Included)

Last Updated on September 20, 2022 by 15 Comments

Styling Buttons with Divi’s New Background Options (6 Designs Included)
Blog / Divi Resources / Styling Buttons with Divi’s New Background Options (6 Designs Included)
Play Button

If you haven’t taken advantage of Divi’s new background options interface, you are missing out. The background design possibilities are astounding. But wouldn’t it be awesome to have the same powerful design options for our buttons? If the answer is yes then I think you are going to love this post.

Today I’m going to show you how to bring the same powerful background design features to style buttons. This design trick layers the Row and Column background behind the button module to give you 3 layers of design capabilities. With this kind of power, things could get dangerous. Best to stay calm and go slow at first 🙂

Let’s go.

Sneak Peek

Here are the example button designs covered in this post.

button design

Styling Buttons with Divi’s New Background Options (6 Designs Included)

Subscribe To Our Youtube Channel

The Set Up

Using the Visual Building, add a regular section with a one column row.

button design

Next add a Button Module to the row.

button design

Then update the button module settings as follows:

Content Options

Button Text: [enter text]
Button URL: [enter URL]

Design Options

Button alignment: Center
Text Color: Light
Use Custom Styles for Button: YES
Button Text Size: 48px

Advanced Options

We need the width of 100% will be needed to fill the width of the column. To do this, enter the following custom CSS in the Main Element box:

Width: 100%;

Save settings

You can’t see anything on the page right now because your button border and text is white. Instead of styling the button’s background color using the button module settings, we are going to customize the background color of the row/column behind the button using the more advanced background options. We will be revisiting the button module settings once we start doing more specific designs on the buttons. But for now, let’s finish setting up the row.

Go to the Row Settings that your new button is sitting in and update the following:

Content Options

Select the Column 1 Background Gradient tab and then click the gray circular button with a white plus symbol.

button design

Now you should see the default gradient colors show up behind your white button.

button design

The column is fitting nicely behind our button now, but we need to decrease the width of the button. To do this we are going to use the row sizing settings. By setting a custom width for our row, we also set the width of our button.

Design Options

Under the design options, we are going to adjust the sizing of the row to fit our new button by adjusting the following:

Use Custom Width: YES
Custom width: 500px (this sets the max width of the button to 500px)
Custom Padding: 0px Top, 0px Right, 0px Bottom, 0px Left

Advanced Options

We need the match the border radius of the row and column to what we have set for our button so that they all match.To do this, enter the following custom CSS in the Main Element box:

border-radius: 10px;

Enter the same CSS into the Column Main Element box:

border-radius: 10px;

Save settings

Now that the Row settings have been updated to have a custom width and padding, two things have been accomplished. First, we have successfully set a custom width for our button. And Second, we now have another layer of background options we can use to style our button.

button design

That’s a total of 3 background layers (button, column, row) we could use for styling later on.

Here is an illustration of how the button is currently built.

button design

Pretty cool right?

That’s it for the basic setup. Now it’s time for the fun part of creating awesome designs for your buttons.

Creating Awesome Button Designs

#1 Video Background Button

button design

To create this button, you are going to use all 3 layers, the row background for the video, the column background for the gradient, and the button background for the slight blue overlay.

For the Row Settings update the following Content options:

Background Video: [upload video]
Column 1 Background Gradient Colors: rgba(12,113,195,0.41), rgba(131,0,233,0.18)

button design

button design

Save Settings

For the Button Module Settings, update the following:

Content Options

Button Text: “Check it out”

Design Options

Button Background Color: rgba(12,113,195,0.25)
Button Border Color: #0c71c3

button design

Save settings

Now the only problem we have left is the border radius of the video background. We have to add some custom CSS to give the video a border radius that matches the button. This extra code is only necessary for the video background button.

To add the custom CSS, go to page settings from the Visual Builder and click the Advanced tab. Then update the Custom CSS input box with the following CSS:

.et_pb_section_video_bg {

border-radius: 10px;

}

button design

Save Settings

Tip: Another cool design option is to have the video show on hover. Just give your button module a solid background color and change it to transparent on hover.

That’s it! Now you have a button with a video background.

button design

#2 Checkered Button

button design

The checkered button requires using two layers (row and column) of background color gradients.

To create this button, you are going to use 2 layers, the row background for the first level of gradients and the column background for the last layer of gradient color.

For the Row Settings update the following Content options:

Background Gradient Colors: #8300e9, #0c71c3
Gradient Direction: 270deg
Start Position: 50%
End Position: 0%
Column1 Background Gradient Colors: rgba(224,11,0,0.39), rgba(255,255,255,0)
Gradient Direction: 180deg
Start Position: 50%
End Position: 0%

button design

button design

Save Settings

Now go to the Button Module Settings and update the following

Content Options

Button Text: “Subscribe”

Design Options

Button Border Width: 0px
Button Letter Spacing: 10px
Button Font: Default, Bold (B), Italic (I)
Button Hover Letter Spacing: 10px

button design

That’s it. Here is the final result.

button design

Now you know how to add a checkered effect to your buttons.

#3 Radial Gradient Button

button design

To create this button, you are going to use 2 layers (row and column) of background color gradients.

For the Row Settings update the following Content options:

Background Gradient Colors: #8300e9, #0c71c3
Gradient Type: Radial
Radial Direction: Center
Start Position: 50%
End Position: 100%
Column1 Background Gradient Colors: rgba(224,11,0,0.39), rgba(255,255,255,0)
Gradient Type: Radial
Radial Direction: Center
Start Position: 50%
End Position: 100%

button design

button design

Save Settings

Now go to the Button Module Settings and update the following:

Content Options

Button Text: “contact me”

Design Options

Button Border Width: 0px
Button Font: Crafty Girls

Button Icon: [choose heart icon]
Only show Icon On Hover for Button: NO

button design

Advanced Options

For a final touch, let’s add a slide shadow to the button. In addition to the previous code, enter the following Custom CSS in the Main Element box:

box-shadow: 0px 5px 10px 3px #ccc;

That’s it! Here is your final result:

button design

#4 Bullseye Button

button design

To create this button, you are going to use 2 layers (row and column) of background color gradients. Plus we are going to add some custom css in the button module to create the bottom border popup effect.

For the Row Settings update the following Content options:

Background Gradient Colors: #023500, #008c02
Gradient Type: Radial
Radial Direction: Center
Start Position: 19%
End Position: 0%
Column1 Background Gradient Colors: rgba(0,206,72,0.43), rgba(255,255,255,0)
Gradient Type: Radial
Radial Direction: Center
Start Position: 32%
End Position: 0%

button design

button design

Now go to the Button Module Settings and update the following:

Content Options

Button Text: “Buy”

Design Options

Button Text Size: 65px
Button Border Width: 0px
Button Font: Roboto, Bold(B), Uppercase(TT)

button design

Advanced Options

Now for the final touch. Add the following Custom CSS to the existing code in the Main Element input box:

box-shadow: 0px 5px 0px 0px #01771f;

button design

#5 Image Button

button design

To create this button, you are going to use all 3 layers, the row for the background image, the column for the gradient background, and the button background for the semi-transparent blue color overlay.

For the Row Settings update the following Content options:

Under the Background Image tab

Background Image: [upload image]
Background Image Size: Cover
Background Image Position: Center
Background Image Repeat: No Repeat
Background Image Blend: Multiply

button design

Under the Background Gradient tab

Background Gradient Colors: rgba(12,113,195,0.33), #edf000
Gradient Type: Linear
Gradient Direction: 63deg
Start Position: 50%
End Position: 100%

button design

Now scroll down to the Column 1 Background options and select the gradient tab.

Column 1 Background Gradient Colors: rgba(236,239,31,0.66), rgba(0,0,0,0.49)
Column Gradient Type: Linear
Column Gradient Direction: 139deg
Column Start Position: 12%
Column End Position: 0%

button design

Save Settings

That takes care of our second level of background designs. One more left.

Go to the Button Module Settings and update the following:

Content options

Button Text: “Get Tickets”

Design Options

Button Background Color: rgba(12,113,195,0.16)
Button Border Color: #efef4f
Button Font: Lato
Button Icon: [select Tickets icon]
Only Show Icon On Hover for Button: NO

Button Hover Text color: #023b7c
Button Hover Background color: #023b7c

button design

button design

That’s it!. Check out your image button.

button design

#6 Portrait Button

button design

To build this last button, we are only going to use one layer of background design. We are going to use an image blend of the background image and the background color to create a unique look.

For the Row Settings, scroll down to the Column 1 Background Options and update the following:

Column Background Image: [upload portrait image]
Column Background Image Size: Fit (this will make sure the portrait always fits within the button)
Column Background Image Position: Center Left (this aligns your portrait to the left of the button)
Column Background Image Repeat: No Repeat
Column Background Image Blend: Luminosity (this creates a nice blending of the orange color with the portrait)

button design

button design

Make sure to delete the current gradient colors if you have them set. If not, you want be able to blend the orange background. Just click on the gradient tab and hover over the color picker box and click on the trash can icon that pops up on the top right.

button design

Now you can see the orange blend on your button.

Save settings

Now go to the Button Module Settings and update the following:

Content Options

Button Text: “Let’s Talk”

Design Options

Button Alignment: Right
Button Border Color: #ff7b23
Button Letter Spacing: 3px
Button Font: Happy Monkey
Button Icon [add chat icon]
Only Show Icon On Hover for Button: NO
Button Hover Letter Spacing: 3px

button design

button design

All done! I like this design for a blog contact button. I think it adds a nice personal touch.

button design

Designing buttons on different column structures

So far, we have been using the single column rows to serve as the backgrounds to our buttons. This allows us 3 layers of background design. However, if you would like to include a button on a different column structure, you can. You will just lose the row as a background layer.

For example, let’s say you want to add a ½ ½ column row with a button on the left and some text on the right. Here is what you would do.

Start with a new regular section and select the ½ ½ column row structure. Then add a button module to the left column.

button design

In the Button Module settings, make sure you insert the following CSS in the Main Element input box under the Advanced tab:

Width: 100%;

You can customize the rest of the button module later.

Next, go to the Row Settings and scroll down to Column 1 Background options and update the background settings how you want.

button design

Then go to the Design tab and update the following:

Column 1 Custom Padding: 0px Top, 0px Right, 0px Bottom, 0px Left

button design

Save settings

Now you have a button on the left column that is able to use column 1 background options for the design. Once you go back and update the button style to your liking, add your text on the right column and you are done!

button design

Responsive?

Yes. Because the buttons are built within the column structure of Divi, the buttons will respond nicely on all devices. You may need to revisit the button module settings to adjust how certain button elements adjust to different devices.

Cross Browser Support

Currently, the background-blend-mode CSS property is not supported by Internet Explorer or Edge and Safari has limited blending options. However the fallback is not considerable in my experience for most cases.

Here is what the buttons look like on IE:

If you are committed to IE, I would suggest testing them to find a happy medium that looks great on both IE and other browsers.

Final Thoughts

I have to admit, this tutorial is pretty groundbreaking for me personally. In the past, I had to add a bunch of classes and additional CSS to my child theme if I wanted to style buttons creatively. But now that I can use Divi’s background options, my life became much easier. I hope that you can use this design trick to take your buttons to the next level.

Look forward to hearing from you in the comments.

Cheers

Divi Marketplace

Are You A Divi User? Find Out How To Get More From Divi! 👇

Browse hundreds of modules and thousands of layouts.

Visit Marketplace
Divi Marketplace
Divi Cloud

Find Out How To Improve Your Divi Workflow 👇

Learn about the new way to manage your Divi assets.

Get Divi Cloud
Divi Cloud
Divi Hosting

Want To Speed Up Your Divi Website? Find Out How 👇

Get fast WordPress hosting optimized for Divi.

Speed Up Divi
Divi Hosting
Premade Layouts

Check Out These Related Posts

New Starter Site for Yoga (Quick Install)

New Starter Site for Yoga (Quick Install)

Posted on December 20, 2024 in Divi Resources

Divi empowers you to build the best websites possible, and now, Divi Quick Sites takes website creation to a whole new level. This revolutionary tool lets anyone, regardless of skill level, generate a complete website in under two minutes! Divi Quick Sites provides everything you need to launch...

View Full Post
New Starter Site for AI (Quick Install)

New Starter Site for AI (Quick Install)

Posted on December 17, 2024 in Divi Resources

Divi empowers you to build the best websites possible, and now, Divi Quick Sites takes website creation to a whole new level. This revolutionary tool lets anyone, regardless of skill level, generate a complete website in under two minutes! Divi Quick Sites provides everything you need to launch...

View Full Post
Divi 5 Update: Public Alpha Version 5

Divi 5 Update: Public Alpha Version 5

Posted on December 10, 2024 in Divi Resources

The Divi 5 Public Alpha is available for testing. If you use Divi 5, you’ll notice an update notification for Public Alpha Version 5 today. We release new Divi 5 versions every two weeks, and it gets better each time! If you haven’t tested Divi 5 yet, try it and let us know what you...

View Full Post

15 Comments

  1. Jason,
    I’m trying to use a background image in row. It’ perfect in desktop view but in tablet and mobile view the image flows 30px below the button. Do you experienced it? What could be the solution?

    • I would check the padding and margin settings you have set for your row in tablet and smartphone. That may be your problem.

  2. I’m having trouble with the customized button on a page with a background color.
    Does this slow down the site? Will it work on the iPhone?

  3. While I like some of the buttons’ looks, I can’t help but wonder if it wouldn’t be possible and preferable to achieve the same results using CSS on the button itself, rather than limiting the portability of the styled buttons by using the section, row and module to achieve a certain look?

    Yes, ‘manual’ styling requires some coding, but with all the free CSS generators available, it’s not hard to achieve a certain look even when you don’t know how to write the proper CSS yourself.

  4. Completetelly awesome silly way of implementing this.
    It is not usefull to have a full row-full-column-full section button. We usually align our buttons inside a colum that already has other modules on it and that is inside a section that may have other rows.
    On what use cases would this will be usefull? CTA where you have to put your text on other section? Text paragraphs where user can choose betbeen two buttons that are rendered one above the other? ??

    Just implement a more powerfull background editor, please…

  5. Wow! Ok. I have a lot of creative thinking to do around buttons. I just don’t give them as much thought as I could, clearly. I’m excited to try one of these on my current project. Thanks.

  6. Is it possible to make CSS transition on hover for gradients similar to what we have for colors (transition: all .2s)?

  7. Me appear broken All the links of the images

    • We are looking into the problem. Sorry, German.

  8. Divi is so flexible. Endless possibilities
    –collapsing the row around the button to get extra background style options is genius!

  9. This is a fantastic idea. I especially loved the hover video button idea.

  10. Hm. Your CDN is giving me a 504 Gateway Time-out. :-/

  11. 🙁 images are all showing as broken links for me!

    • same problem here… no images displayed =(

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today