Divi – Adding a section to the slide in menu

Divi – Adding a section to the slide in menu

The Preview

I had a suggestion/request for a tutorial.

This is what you get:

 

The Video

 

The Setup

[sc name=”get child theme”]  

Or you’re gonna need this functionality in your child theme.

Insert layouts everywhere

 

So hopefully, you’ll be seeing this:

note: the id number will be different, but don’t worry, just copy paste what you have on your site.

 

You’re ready to go!

The Code

Open up header.php, and you’ll find this:

 

in line 128, you’re gonna add this:

<?php echo do_shortcode('[ai_layout_sc id="444"]'); ?>

note: of course when you paste the shortcode, it’ll have your id number, not 444

Now it’ll look like this:

 

and you’re done!

Extra tips

– The section should have a transparent background (if you want the menu background color to show)
– media queries don’t work (since media queries are for screen widths, not container sizes) so you’ll have to experiment a bit to get the right sizing.

 
[sc name=”podcast”]

 
If you want to brush up on your CSS so you can style/design all these cool new elements, try learning it!
[sc name=”learn css”]

 
[gravityform id=”1″ title=”False”]  

Sandwich Photo by Youjeen Cho on Unsplash

Why no ads?

Hi, my name is PK, and welcome to my website, almost inevitable design. I maintain and publish on this site for two reasons.

  1. To give back to the community. I learned so much from people's tutorials and StackOverflow that I wanted to contribute and help others.
  2. To provide a more structured learning experience. People struggle to find the course that guides them from start to finish, based off of real life experience, and my courses provide that.

The only "ads" I have here are for my own courses, and maybe an affiliate link, but that's it. They fund the website resources and provide more motivation for me to product better content.

Any bit of interest helps. Even sharing with your feidns, suggesting my courses to your developer or designer, or subscribing to my YT channel, or joining our Discord. Thanks and I'll see you around!

The Web Design Space

TWDS is my web design agency. If you're looking for premium quality, reliable, web design and development, come see what we're about!
Learn More
Choose "Paythen" at checkout for an interest free 10 week payment plan.
Leave a Reply

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

    New tutorials