Do you want to create an off canvas menu? In fact, one of my clients wanted to create this slide-in menu for one of his projects.
I did create that menu but it was built with a different theme and plugin, so I wanted to check if I can create this off canvas menu with elementor alone.
Let’s find out together
The topics we will cover – how to create a menu in elementor, create a custom header in elementor, trigger a popup with a button click.
First, we will create a menu with Icons for this we will use Fontawesome icons because elementor already uses fontawesome and we don’t need to use any additional plugins.
Once we add the icons the second step is to create the off canvas menu for this we will use the popup feature of elementor pro. We need to adjust some basic settings like the width, entrance and exit animation, etc.
Once done then we will add our menu to the popup using the elementor nav menu widget then will adjust some of the menu settings.
Then the third step is to create the button which will trigger this popup, for this, we will create a custom header and add the trigger button to it.
Once we put together these parts finally we need to add some custom css to polish up our menu.
Here is the css
.elementor-nav-menu a {
flex-wrap: wrap;
justify-content: center;
}
.elementor-nav-menu a > i {
width: 100%;
font-size: 32px;
text-align: center;
}
.elementor-nav-menu .sub-arrow {
position: absolute;
right: 5px;
top: 50%;
transform: rotate(-90deg);
padding: 0;
}
.sub-menu.elementor-nav-menu--dropdown {
box-shadow: 0 0px 0px 1px rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.08), inset 10px -20px 20px -10px rgba(0,0,0,0.08);
background: #fff;
height: 100vh !important;
position: fixed !important;
top: 0 !important;
left: 100px !important;
margin: 0 !important;
overflow-y: auto;
}
Disclosure: Some of the links here are referral/affiliate links that means if you decide to buy through those links I’ll earn a commission at no extra cost to you. This is how I keep Designtheway.com up and running.
Plugins required:
Here are some of my favorite website building tools
Thank you for reading the article hope you have found this helpful. Here are some of my favorite tools that I always use and hope you will find them helpful too. Please note these are affiliate links, if you do purchase anything using my links I’ll earn a small commission at no extra cost to you. I recommend these tools to my clients and friends as well.
Web Hosting: For starting a new website, I like to use GreenGeeks. They are reliable and affordable for a beginner. They have a very simple setup process that anyone can use. I’m personally using their service for over a year now.
Page Builder: For building beautiful websites in a short period of time I like to use Elementor. It is one of the most powerful page builders in the market. You don’t need any technical knowledge to make websites.
Content Writing: When you make a website you have to add content to it. I use Grammarly to write better content. It improves the writing by checking spelling and grammar mistakes automatically. It has a premium version but for starters, the free version is a good starting point.
Advertising Network: When you have built the website and have traffic on it, ads are the easiest way to monetize the website. Adsense is the most popular choice but I recommend Ezoic which will give you a much higher earning than Adsense and the best part is it is free to use.
4 thoughts on “Create an off canvas menu with elementor”
Very interesting post on Create an off-canvas menu with elementor. here I learn some points that I don’t know before. I really appreciate the way you have written and explained. Good work..!!!
Glad that it helped you David!
Just loved this article. It helped me to create an offcanvas mobile menu in my elementor site. Thanks a lot for sharing your idea.
Glad to know it helped you Arifa!