How To Create Sticky Headers With Elementor
How to Create Sticky Headers with Elementor
Sticky headers allow a website user to have access to the page’s header and menu section, no matter how much they scroll down.
Step 1: Creating Your Menu
To add a sticky header to your website first, you need to create Main Menu in your wp-admin > Appearance > Menus. Add the section you want to show in the header.
![Main Menu Screenshot on Elementor](https://wpastra.com/wp-content/uploads/2020/01/main-menu-screenshot-elementor.png)
Step 2: Creating Your Header In Elementor
After creating the main menu, go to Elementor Templates > Theme Builder. In theme builder page select Header section and click on “Add New Header”.
![Theme Builder Elementor Settings](https://wpastra.com/wp-content/uploads/2020/01/theme-builder-elementor-settings-1.png)
On the pop-up screen, give a name to the header template and click on “Create Template”.
![Create Template Settings in Elementor](https://wpastra.com/wp-content/uploads/2020/01/create-template-settings-elementor.png)
After that, you’ll be redirected to the Elementor editor page. Here you can choose a pre-built header template or create your own from scratch.
For this guide, we’ll be creating our Elementor sticky header from scratch.
Before we start creating a template, you can see some header widgets in the Elementor editor. Using these sections we can create a header quickly and easily.
![Elementor Header Widgets](https://wpastra.com/wp-content/uploads/2020/01/elementor-header-widgets.png)
Step 3: Creating a Header Template in Elementor
Add a two-column structure. Make sure that the content width of the section is “Boxed”.
![Elementor Header Structure Settings](https://wpastra.com/wp-content/uploads/2020/01/elementor-header-structure-1024x278.png)
![Elementor Edit Section Content width Settings](https://wpastra.com/wp-content/uploads/2020/01/elementor-edit-section-settings.png)
Under the “Edit” Column set the first column width to 20%.
![Elementor Edit Column Settings](https://wpastra.com/wp-content/uploads/2020/01/elementor-edit-column-settings.png)
Now add your website’s Site Logo to the first column, and select left alignment.
![Add header logo elementor settings](https://wpastra.com/wp-content/uploads/2020/01/add-header-logo-1024x74.png)
In the second column, add a Nav Menu and select the main menu you created in step 1. Align the Nav Menu to the right-hand side.
![Add nav menu elementor settings](https://wpastra.com/wp-content/uploads/2020/01/add-nav-menu-1024x75.png)
For this guide, we’re creating a simple header. You can create a more detailed design for your header by adding a background color, hovering animation effects, buttons and more.
Step 4: How to Make Your Elementor Header Sticky.
After creating our basic Elementor header, it’s now time to make it a Sticky header.
To do this, click on the Edit section (Whole header section). Go to Advanced > Motion Effects.
![Adding motion effects instructions](https://wpastra.com/wp-content/uploads/2020/01/motion-effects-settings-1024x413.png)
Under motion effects, select “sticky to the Top” and select the “devices” where you want to show sticky header and hit on the “Publish” button.
![Adding sticky to top settings instructions](https://wpastra.com/wp-content/uploads/2020/01/sticky-to-top-settings.png)
After publishing, Elementor asks you to Add a Condition for your header. Basically, by adding conditions you can show header wherever you want on the site.
Here we wanted to show this header on the entire site, excluding the 404 Page. So, we included the Entire Site in the dropdown and excluded 404 Page.
![Elementor publish settings to exclude 404 page](https://wpastra.com/wp-content/uploads/2020/01/elementor-publish-settings.png)
As you can see creating your custom Sticky header with Elementor is both quick and painless!
Comments
Post a Comment