How To Style and Customize The Divi Menu Module Dropdown Submenu

In this Divi tutorial, I'm going to show you how to style and customize the the Divi Menu module dropdown submenu with CSS.

Here is an example of how the default Divi dropdown menu looks:

How To Style and Customize the Divi Submenu with CSS

Here is the behind-the-scenes structure of the submenu by default:

Notice anything? Each separate piece has it’s own properties, like padding and width. They are nested within each other, so in order to customize what we want, we first need to learn to target the correct piece of the structure.

It is important for you to understand the structure of the Divi submenu first before we start customizing it with CSS.

This tutorial will go over each part of the submenu separately, and you can follow along and use it as a guide for styling your Divi menu dropdown submenu!

How To Customize And Style The Divi Menu Dropdown Submenu 

One of the first things we probably notice is the ugly blue thick like at the top of our submenu. Or maybe you want to remove some padding at the top or bottom or make it wider. You can do that by targeting the submenu unordered list as shown.

How To Customize And Style The Divi Menu Dropdown Submenu-

Edit The Overall Submenu

Once you have our CSS selector ready, you can start adding custom code where it says “YOUR CSS HERE.” (be sure to remove that text)

Custom Style Ideas

The following is a list of some ideas for things you might want to do to style the overall submenu. You can choose to do this by placing the snippets into the selector shown above.

Remove or adjust the spacing:

Remove the default border at the top:

Add a border:

Change the background color:

Change the width:

How To Customize And Style The Divi Menu Dropdown Submenu List Items

Now we move on to the list items. It can be confusing how the list items and the links relate, but if you take a close look at my suggested custom style ideas, you will start to see. The list items control the links items, but the next section of links controls the link text.

How To Customize And Style The Divi Menu Dropdown Submenu List Items-

Edit The List Items

Edit The List Items On Hover

Once you have our CSS selector ready, you can start adding custom code where it says “YOUR CSS HERE.” (be sure to remove that text)

Custom Style Ideas

The following is a list of ideas of some things you might want to do to style the submenu list items. You can choose to do this by default, or on hover, by placing the snippets into the correct selector shown above.

Remove or adjust the spacing:

Change the background color (for on hover):

Add a border on the bottom:

How To Customize And Style The Divi Menu Dropdown Submenu Links

The last section of the Divi dropdown submenu is the links themselves. The link text is great to style, and I have provided some ideas below like changing the color, size, spacing, or width. Another obvious one is the opacity, which changes to .7 by default on hover, but you can override that if you want.

How To Customize And Style The Divi Menu Dropdown Submenu Links-

 Edit The Links

Edit The Links On Hover

Once you have our CSS selector ready, you can start adding custom code where it says “YOUR CSS HERE.” (be sure to remove that text)

Custom Style Ideas

The following is a list of ideas of some things you might want to do to style the submenu links. You can choose to do this by default, or on hover, by placing the snippets into the correct selector shown above.

Remove the spacing:

Change the opacity (especially on hover):

Remove the slight background color (on hover):

Change the width:

Change the font size:

Change the color:

Change the letter spacing:

Please share this post!

Nelson Lee Miller (aka The Divi Teacher)

Nelson is the owner of Pee-Aye Creative Co in the beautiful state of Pennsylvania. He loves helping small businesses, exploring, building websites with Divi, and teaching others.

Join Our NEW Divi Facebook Group!

The Divi Teacher Logo

Related Posts

Leave A Response!

6
Leave a Reply

avatar
  Subscribe  
newest oldest most voted
Notify of
Edgar
Edgar

Good tutorial, I think the next step on this series could be how to style the mobile menu. Just a thought.
Thanks

Aarón Blanco Tejedor

Super helpful, thank you! <3

JUDY OOSTHUIZEN

Thanks its an awesome tutorial

Shop Our Divi Products!

Child Themes • Plugins • Layouts

Visit The Shop

Divi Tutorials On YouTube

Subscribe to our helpful Divi videos!

Visit Our Channel

Pin It on Pinterest

0

Your Cart