How To Add A Point On Top of The Divi Submenu Dropdown

Nelson Miller Profile Orange
This fun tutorial will show you how to add a point on top of the Divi menu submenu to the dropdown to add some extra styling and making it stand out!

This is going to be a quick and easy one. Just copy the code snippet below and paste it into your website.

Where To Paste The CSS Code

1. Divi Assistant
If you are using our Divi Assistant plugin, simply paste the code in the CSS tab in the custom code window in the Divi Visual Builder.

2. Child Theme
If you are using a child theme, paste this code into the style.css file. If you don't have a child theme, you can generate a child theme directly on your site or download our free child theme.

3. Divi Theme Options Integration
Otherwise, paste this code in your Divi>Theme Options>Custom CSS code box.

If you need help understanding where to paste the code, please check out our complete guide about where to add custom code In Divi.

/*add point on top of the Divi menu submenu dropdown*/
nav > ul > li > ul:after {
    position: absolute;
    left: 20%;
    margin-left: -20px;
    top: -14px;
    width: 0;
    height: 0;
    content:'';
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid #2cba6c;
}

That should be all you need! Now just adjust the code to fit your needs.

Change the color of the “border-bottom” to match the hex color of your submenu background color.

If you want the point to be moved over to the middle, just change the “left” to 50%.

Need More Submenu Styling?

For more submenu styling, be sure to check out our other tutorial on How To Style The Divi Submenu. It’s a really helpful guide that will go perfectly with this tutorial!

How To Style and Customize The Divi Menu Module Dropdown Submenu Tutorial by Pee-Aye Creative

Subscribe For More Things Like This!

At the start of each month, we send out a recap newsletter from the month before with family news, Divi news, our latest tutorials, and product news. Occasionally, if the news is too exciting to wait, we will send out another email separate from the monthly newsletter. That’s what you get when you subscribe, and of course you can unsubscribe if you are no longer interested!

Blog Post Optin
Divi Logo (2)

Shop Our Divi Products

Plugins • Courses • Templates

Visit The Shop

Featured Products

Asset 4

New! Trail Guides

Follow a series of blog posts carefully arranged around a specific topic or goal! Keep track of your progress by marking posts completed, just like a free course!

View Trial Guides

Divi Tutorials On YouTube

Our videos have views! Join subscribers and enjoy over video tutorials!

Visit Our Channel

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy

31 Comments

Comments By Others

  1. Sam-Easy

    hello I’m excited about this opportunity and I will love to say thanks for the amazing videos you’ve been releasing
    but I have a question!

    How do I customize a footer that will look like the one on this blog post?

    Reply
  2. yvonne van leeuwen

    Hi Nelson, I’ve tried to figure out why my divi theme built main menu is displaying the mobile dropdown menu (on inspect) off to the right. Tablet and desktop are fine. I used all the code you provided in How To Style and Customize The Divi Menu Module Dropdown Submenu tutorial. The pointed top and rounded corners also don’t show, as per the tutorial. Is this because I’ve built in theme builder?

    Reply
  3. Alex

    nice and how do i make the dropdown box like in your website menu? to bring that box in front of the header?

    Reply
    • Hemant Gaba <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

      Hey Alex,

      Could you please share the URL of the webpage so I can investigate further?

      Reply
  4. Janice

    Thank you! Adds a little pizzazz to my menu. I appreciate you including the default menu because some of us are still using it for now.

    Reply
  5. Klazina

    Is there a way to make the divi navigation menu and sub menu a different color from the regular menu? My client wants the top bar/ logo background to be white and the menu bar to be a dark blue. Is there a code for this?

    Reply
    • Hemant Gaba <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

      Hey Klazina,

      Yes, definitely there is a code for this but it depends upon the kind of header that you are using.

      For default header:
      #et-top-navigation{
      background-color: #000;
      }

      For theme buider header:
      .et-l–header .et_pb_menu__wrap{
      background-color: #000
      }

      You can change the color as per your liking.

      Let me know how it goes.

      Reply
  6. alecz

    Can we ahve a way to use it in the divi mega-menu where the mega-menu starts wherever the dropdown is. Thank you so much.

    Reply
    • Hemant Gaba <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

      Hi Alecz,

      We didn’t try that yet but we will definitely try this out and get back on this as soon as possible.

      Reply
  7. pat

    Hi there, everything you showed worked good so far,
    However I have multiple sun menu but the CSS snippet keeps the point just at one location. not under every sub menu dropdown. How can I fix that .
    Please help! thanks.

    Reply
      • Alecz Eighmard Silva Deyto

        I have the same problem it just sticks to only one location check this picture for reference: https://ibb.co/Z8BZqXy. Thanks for the help.

      • Hemant Gaba <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

        Hi Alecz,

        The URL is not clear in the snapshot so could you please provide the URL so that I could investigate further?

  8. Echo

    I forgot to ask. How would you center the submenu under that on any one sub menus? Thank you.

    Reply
    • Hemant Gaba <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

      Please share the URL of the page where you want to center the submenu so that we could investigate further. 🙂

      Reply
      • Echo

        Unfortunately they have it hidden due to NDA

  9. Echo

    Great job! Thank you.

    Reply
  10. Lily

    Thank you! works perfect

    Reply
  11. Alessandro

    You are simply amazing! Thanks for all your job with Divi and for sharing!!
    I would like so much to know how can I use it if the background of my top bar menu and the box of submenu are white (it’s the same case of this website 😅). How can I get the same result (dark shadow on hover)?
    Greetings from Italy!!

    Reply
      • Alessandro

        I think that your method works fine using a different colour for submenu background. I’ve the same background colours of your top bar (my top bar menu and submenu background are both white), but I haven’t submenu dark shadow on hover, so I can’t se the “triangle” on top because it is simply white on white. I hope that you can understand my so bad English, I’m sorry! 😊

  12. gio

    Good job! I like this short tutorial!
    One question: there’s a easy way to display on a menu voice a label like “new”. Similar at your site? (on divi)
    Thank u so much!

    Reply

Submit a Comment

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

Recent Posts

0

Your Cart