Divi Tutorial – Make your own custom megamenu

Divi Tutorial – Make your own custom megamenu

Have you tried to add a mega menu to Divi? Not very fun, eh?

Well, there’s this to start with: https://www.elegantthemes.com/blog/divi-resources/adding-images-to-your-divi-mega-menu

It’s sort of like a mega menu.. but doesn’t give you enough creative freedom.

So.. we go on to another method.

The video

 

Details

 

We need two things to get this done.

 

ONE. This child theme

This child theme allows you to take layouts in the Divi library and use them as shortcodes everywhere.

 

TWO. This plugin

https://wordpress.org/plugins/shortcode-in-menus/

 

How to put them all together

First, go to Divi > Divi Library and make a layout or a section, or whatever you need.

Save it.

Now if you revisit Divi > Divi Library, you’ll find that there’s now a new shortcode for the layout. Copy that. You’ll need it later.

Next, go to Appearance > Menu and follow the instructions.

  1. Open screen options (upper right hand corner of screen)
  2. Check CSS classes in the panel you just opened.
  3. Add a custom link menu item with # in the URL. Once added, open it to add “mega-menu” in the custom class.
  4. Drop the shortcode into the content field in the “shortcode” menu box, and add that to menu.
  5. Make sure that item is a submenu of the menu item you just made in step 3.

Save all that, and you’re done.

There you go. Mega menu.

 

Photo by Christelle BOURGEOIS on Unsplash

Get Breakdance

Breakdance is, in my opinion, the best page/site builder on the market, which is why all my tutorials use Breakdance. It's also why I have an affiliate link. You don't pay extra, but I get a little commission, so it helps support the site. Thanks!

Get ACF Pro

Another essential plugin for site building. This isn't an affiliate link, it's just for convenience.

Get WP Codebox Pro

If you'd like an easier to use, and more advanced code management plugin (instead of just editing and making files yourself) then WP codebox pro is for you. Adding php, js, and even SCSS. Pretty nice! Affiliate link below.

Blank Plugin

Sort of blank. It's made to be easy to use with the tutorials. Download and edit any way you see fit.
  1. Cool trick! Thank you, PK!

  2. Thanks! Hope you put it to good use!

  3. I can’t seem to list the shortcodes in library. Are you using sorcery?

      • Hi,

        Thanks for this tutorial – however I have the same problem as drew. I’ve installed the child theme but the shortcodes item does not appear on the Menu page?

        • My apologies – I’ve found it. It was in Screen Options

          • Hi Richard, Glad you sorted it out. Thanks for the update!

  4. Hello PK,

    Great tutorial mate!
    Continue with what you are doing now because you are on the right track.

    Bye

    • Thanks Dragos!

  5. This looks very interesting! I would like to use it for my main menu so it shows my links on mobile, too. All I need on mobile are the main menu links. So how would I add some stuff to the panel along with my main menu, for example, header labels above each of the columns of the menu? And perhaps below the main menu a row of social media icons? Is this possible?

    I am into Divi for about 2 months so there is still a lot I have to learn! Thank you!

    • I will give it a try after going over your instructions more thoroughly and report back if I’m still stuck. So don’t go to any trouble yet. Thanks!

Leave a Reply

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

New tutorials

Auto-updating Year in Footer
Designing Beyond the Brief
Disable Gutenberg Editor on some ACF pages
ACF flexible content fields in Breakdance 2.4

Got a question? ask!

If you have any question about the content on this page, feel free to send me an email by clicking the button below.

newsletter? sign up!

Sign up to the newsletter for updates on tutorials, news, and offers.

Join the cypher!

An awesome membership program for Breakdance Builder users coupled with an inclusive, friendly community.

Got a question?

If you have a question about something on this page, send me an email, and hopefully I can answer, and we can solve it!