Like our free content? Then you'll love our exclusive Club!
Divi Academy Membership gives you exclusive access to over 110 resources, including child themes, layouts, cheatsheets, tutorials, live training and member perks. And new content is added EVERY Monday!
In this quick snack I am going to show you how to easily add subtitles to the primary menu in Divi
You can see an example of this in my menu on this site (in case I have changed it since writing this I have included an image below
). This effect can be used to give a little more detail about what each page is about

So let’s get cooking!
Cooking time
This should take you around 5 minutes max.
Preparation
The first thing we need to do is add the subtitles to our menu, so navigate to Appearance>Menus and make sure you have your primary menu selected.

Next, we are going to add a Span to the Navigation Label of each menu item and include the text we want to use as the subtitle. We do this by adding the following directly after the menu item name.
<span>Subtitle Text</span>

Do this for each menu item and then hit Save Menu.
Method
Next we need to add some CSS to get the subtitle on a line below the actual menu item, so copy and paste the CSS below into your Child Theme style.css or if you aren’t using a child theme (which you really should be) then paste into the Divi Theme Options epanel custom CSS section.
I have added some styling to make the text italic, align it centrally below the main menu item and reduce the padding. You can play with these values to get it looking how you want.
#top-menu > li > a span {
font-size: 14px;
font-weight: 400;
font-style: italic;
float: left;
width: 100%;
padding: 5px 0;
}
#top-menu a {
text-align: center;
}
#top-menu li {
padding-right: 0;
}
So that is the primary menu sorted, but what about the mobile menu? You can use the same CSS for the mobile menu as well but I prefer to have the subtitle on the same line in the mobile menu like this:

We are going to add a colon and a space between the menu item and the subtitle as well, here is the CSS.
.et_mobile_menu li a span {
font-size: 14px;
font-weight: 400;
font-style: italic;
float: none !important;
width: 100%;
padding-bottom: 8px;
}
.et_mobile_menu li a span:before {
content: ": ";
}
So that is basically it. However, if your subtitles are longer than your actual menu items you may run into some issues with the menu wrapping before it switches to the mobile menu at 980px by default.
If you have this issue you can change the point at which the mobile menu kicks in using the CSS media query below, just change the value 1024px to that which fits with the number of items you have in your menu.
@media only screen and ( max-width:1024px ) {
#et_mobile_nav_menu {
display:block
}
#top-menu-nav {
display:none;
}
}
And that’s it. Enjoy!.
If you found this helpful please leave a comment and subscribe to my newsletter for all my latest Divi related content. ![]()
Michelle X





Hello, I don’t know how to put a description under divi logo in the primary menu. could you please tell me how to do it. I find several tutorials for it but not got the right one.
Please see screenshot.
https://prnt.sc/lljuco
Thank you in advance.
.logo_container a:after {
content: 'My logo text';
display: block;
}
This is the basic css, you can then add properties for position and styling
Thank you Michelle. It works great.
Thank you sooo muchhhhh.
Hey I really loved this tutorial and I am trying to implement it on my clients website but all the menu items are just getting too much space between them.
You can adjust that by adding some negative margin:
#top-menu li {
margin-left: -40px;
}
Hi Michelle
I just installed the css to my child theme and enjoyed the subtitles very much. Just 10 minutes ago, I noticed there was a Divi update which I have just done and it seems to have stopped the subtitles working, although looking at the css, it’s still there.
Do you think there’s a conflict with the lastest version of Divi?
Maybe it’s me. I was so chuffed it worked too!!
Thanks
Jane
No conflict, I am running the latest version and its working here. Must be something else, do you have a link?
Hi friends,
A great tutoríal .
I have one horizontal menu with default style.
I would like to change it by hamburger menu but I don’t know how to keep The top bar fix .
When I use hamburger menu the top bar with email, Phone number…..is hidden and I don’like that.
Is it possible what I’m saying?
Thanks.
Do you mean the default hamburger menu when you switch to mobile view or you want to use the slide in or fullscreen with hamburger?
HI, Michelle,
Thank you for all you do to further our skills & understanding of Divi! I have created this on a new site, and all looks good. But I have added Menu Icons, and am not able to get the icons to float left. They want to stay up top of the text. I am using the plugin Menu Icons.
Thank you!
Can you post a link please
Loved this recipe!! How did you get the Home/Kitchen/Academy/Resources to highlight in white in the mobile menu view? Mine looks great…just would like to tweak the mobile menu
They should be the same colour as your main items Andrea but if that isn’t working for you just set the colour in this section of the CSS
#top-menu>li>a span
Hi Michelle.
Love the recipe but it seems to be causing an issue with menu item positioning, can you shed any light on the build Im doing currently : http://matchmaking.wpengine.com/
Hi Amanda
You can add this to your CSS and adjust the value, that should fix it for you
#top-menu li {
min-width: 100px;
}
Thank you so much Michelle, worked a treat. I just love all your recipes. Thank you.
Welcome Amanda
Awesome, awesome, awesome! Thank you so much, Michelle. This will definitely come in handy.
Welcome Sandra
This so slick. I tried it on my test site and it worked perfectly. It is this kind of stuff that makes me look good to my clients. Thank you.
Haha Great Sheila, its all about the clients
Nice recipe! I will use on my new sites! Thanks
Thanks Andre