Divi Tutorials + Layout Kits | WordPress Tips | Business Growth

Home of the Original Divi Tutorials & Divi Layout Kits.

Divi Tutorials + Layout Kits | WordPress Tips | Business Growth

Home of the Original Divi Tutorials & Divi Layout Kits.

One of my clients sells books on several different platforms. So for each book, we wanted to replace his links with buttons so that the page looked more professional. But we we did not want to use columns and I did not want my client to have to go in and modify the html so that we could use custom classes for the links.

We wanted to use the button module but we did not want to use multiple columns either because we would have to modify the column width. Not to mention you are limited to only four columns and even then they are spread too far apart. So I decided to use a little CSS so that we can easily make several buttons added to a single row all line up horizontally.

In this tutorial, I will show you how we use a little custom CSS to make several inline buttons in a single row. This effect is great for headers or call to action sections that need two or more buttons right next to each other.

View The Live Demo

Let’s Get Started Setting up the standard Divi Section.

 

Adding the section and custom class

1. Create a single column section.

 

2. Open up the row settings, go to the “Advanced tab”, and add this custom CSS Class: gq_r_inline_buttons

 

3. Optional: In the section settings, go to the Content tab, click on the Background Image tab, then add your background picture. (tip: background images should always be at least 1980px wide for optimum appeal)

 

4. Go ahead and add your text modules, button modules, or whatever you want in that section. In my demo I added three text modules followed by 5 button modules.

 

5. Save your page and move on to the magic of adding a little CSS.

 

 

Adding The Custom CSS

If you are working with a child theme you can go to Appearance>Editor and open your stylesheet. If not, go to Appearance>Divi Theme Options>Custom CSS (which is located at the bottom of the first tab in Theme Options)

Add this CSS.

/*------------------------------------------------*/
/*--------------[GQ INLINE BUTTONS]---------------*/
/*------------------------------------------------*/

	/* inline buttons */
		.gq_r_inline_buttons .et_pb_button_module_wrapper {
			display: inline-block;
			margin: 10px 10px 0px 0px!important;}

 

 

Making Adjustments To The CSS

As with all my tutorials, my goal is not to teach you how to use Divi Settings as much as it is to teach you how to customize your website learning a little CSS along the way. So with that being said, here are a few CSS tips to help you learn a little more about CSS.

 

To the margin around the button, you can do so here. The margin order goes like this: top, right, bottom, left.

 

And that’s it.

If you used this on one of your projects, please share a link below so we can see how you used it.

Have fun!


Well, that’s all for now. I hope you find this article useful.


The following two tabs change content below.
Geno is an entrepreneur who has been designing websites since 1996. He also enjoys all things design, traveling, hanging out with friends, encouraging other believers, and experimenting with new technologies. When not doing any of the above, you can find Geno blogging or writing Divi customization tutorials here on Quiroz.co.

©2012-2018 Geno Quiroz | Teach Learn Build Love | Divi Expert ServicesJohn 3:16

Divi is a registered trademark of Elegant Themes, Inc. This website is not affiliated with nor endorsed by Elegant Themes.

STAY RELEVANT | BE INFORMED | SIGN UP NOW

IT DOES NOT TAKE LONG TO GET LEFT BEHIND!

You have Successfully Subscribed!

Pin It on Pinterest