Sticky Header on Scroll: How to Set It Up in WordPress and Elementor
A sticky header on scroll stays at the top of the screen while the visitor moves down the page, so the menu is always one tap away. The idea is simple. The details are where builders lose time: the header jumps, covers a heading, ignores mobile, or sits on top of a popup.
This guide covers three ways to build one, using plain CSS, the Elementor Pro sticky setting, or the free Sticky Header Effects for Elementor plugin. It then walks through the settings that decide how the header behaves once it sticks.

Key Takeaways
- CSS position sticky works without a plugin, but it depends on the parent elements around your header.
- Elementor Pro has its own Sticky setting under Motion Effects.
- Sticky Header Effects works on an Elementor section or container, and you turn it on from the Advanced tab.
- The Scroll Distance setting decides when the header becomes sticky and when its sticky styles apply.
- Check mobile, anchor links and layout movement before you publish.
What a Sticky Header on Scroll Does
A normal header sits in the page flow and scrolls out of view with everything else. A sticky or fixed header stays attached to the top of the browser window. Many sites add a second step: at the top of the page the header looks open and light, and after a short scroll it changes background, height or logo so that it reads well over the content passing underneath.
Those two jobs are separate. Staying on screen is positioning. Changing appearance is styling that is triggered by scroll position. If you want the full background on the difference between the positioning types, read sticky vs fixed vs static headers in Elementor.
Method 1: CSS Position Sticky
For a simple header, a few lines of CSS can be enough. Give your header element a class, for example site-header, and add this rule in your theme or in a custom CSS area.
.site-header { position: sticky; top: 0; z-index: 100; }
The browser keeps the element at the top once you scroll to it. No script is involved, and the header keeps its space in the layout, so the content below does not move.
Where CSS Alone Gets Difficult
- A sticky element can only travel inside its parent. If the header sits in a wrapper that is only as tall as the header, it appears not to stick at all.
- An overflow setting such as hidden or auto on a parent element can stop the behavior.
- CSS position sticky does not by itself tell you when the header became stuck, so changing color or size on scroll needs extra code.
- Elementor templates add their own wrapper elements, which makes the first two points more likely.
Method 2: The Elementor Pro Sticky Setting
If you have Elementor Pro, select the header container, open the Advanced tab, expand Motion Effects and set Sticky to Top. You can choose the devices it applies to and add an offset. This is a direct option when staying on screen is all you need and Elementor Pro is already installed.
Our Elementor sticky header setup guide walks through the header setup in more detail.
Method 3: Sticky Header Effects for Elementor
Sticky Header Effects is a free plugin that adds its own panel to Elementor sections and containers. It does not need Elementor Pro for the header effects. You still need a way to display your header across the site, such as your theme, a header builder plugin or the Elementor Pro Theme Builder. If you have not built the header yet, start with how to create a header and footer in Elementor.
Step by Step Setup
- Install and activate Sticky Header Effects for Elementor next to Elementor.
- Open your header template in the Elementor editor.
- Select the outer section or container that holds the logo and menu.
- Open the Advanced tab and expand the Sticky Header Effects panel.
- Switch Enable to On.
- Leave Enable On set to desktop, tablet and mobile, or remove the devices you do not want.
- Set the Scroll Distance, add a Background Color, then update the template and test it on the live page.
Once the visitor scrolls past the distance you set, the plugin marks the header as sticky and fixes it to the top of the window. When they scroll back above that point, the sticky styles are removed. For logged in users on wider screens, the plugin also leaves room for the WordPress admin bar.
Choosing the Scroll Distance
Scroll Distance is the number of pixels the visitor scrolls before the sticky state begins. The default is 60, and the slider runs from 0 to 500. The panel also reminds you that the settings below it are not applied until the page has scrolled that far.
- A small value makes the header react almost at once. This suits compact headers.
- A value close to the height of a hero image or announcement area delays the change until the header is over body content.
- The setting is responsive, so you can use a different distance on tablet and mobile.
The plugin treats widths of 1025 pixels and up as desktop, 768 to 1024 as tablet, and 767 and below as mobile. Keep that in mind if you use custom breakpoints in Elementor.
Styling the Header After It Sticks
All of the settings below are part of the free plugin and live in the same panel.
Offset, Width and Padding
Open the After Sticky popover to set the Offset from the top, the Width of the header and its Padding in the sticky state. A slightly smaller padding is often enough to make the header feel lighter.
Background Color, Border and Shadow
Background Color changes the header background after scrolling, which keeps menu text readable over images and text. Bottom Border and Bottom Shadow add a clear edge between the header and the page. See how to change the header background color on scroll for a closer look.
Shrink Header and Shrink Logo
Shrink Header sets a Header Height for the sticky state, and Shrink Logo reduces the logo as a percentage. The logo options look for the Elementor Site Logo and Image widgets inside the header. Our shrink on scroll guide covers sensible values.
Blur Background and Logo Color
Blur Background adds a backdrop blur with Blur Amount and Saturation Amount controls. It shows best when the background color is partly transparent or left empty. Change Logo Color can turn a logo white, black or back to full color between the two states.
Transparent Header
Transparent Header places the header over the top of the page with no background, then drops the transparent style once the header becomes sticky. It needs a first section with enough contrast behind the menu. Read the transparent sticky header guide before you use it on every page.
Hide the Header When the Visitor Scrolls Down
On long pages and small screens, a header that is always visible takes up reading space. Hide Header on Scroll Down slides it out of view while the visitor moves down and brings it back when they scroll up. It has its own Scroll Distance, with a default of 500 and a range of 0 to 1000. The panel warns that this option might break section or container entrance animations, so test those together. Full steps are in hide header on scroll down in Elementor.
Keep Anchor Links Visible
A header that stays on screen can cover the heading that an in page link jumps to. Switch on Fix Anchor Scroll and the plugin reserves space equal to the live header height. Extra Offset adds a further gap, and Smooth Scroll animates the jump unless the visitor has asked their device for reduced motion. The option uses the first header on the page that has it enabled.
Stop Content From Jumping
A fixed header leaves the normal page flow. At the moment it becomes sticky, the content below can move up by about the height of the header. How visible that is depends on your layout.
- Test with a small Scroll Distance and again with a value near the header height, then keep the smoother result.
- Keep the normal and sticky heights reasonably close.
- If the header sits over a hero image, try the Transparent Header option, which takes the header out of the flow from the start.
- Give logo images fixed dimensions so they do not resize while loading.
For measurement, see our primer on header layout shift.
Check Mobile Separately
A header that looks right on a wide screen can take too much room on a phone. Use the responsive controls to set smaller heights and padding, and remove mobile from Enable On if the header should scroll away there. Open the live page on a real phone, because the editor preview does not scroll like a visitor’s browser. The mobile sticky header guide lists what to check.
Which Method Fits Your Site
Start from the job, then pick the tool. A header that only needs to stay on screen has different needs from one that changes shape and color as the visitor reads.
| What You Need | A Sensible Starting Point |
|---|---|
| A simple header that stays at the top, with no styling change | CSS position sticky |
| Staying on screen, and Elementor Pro is already installed | Elementor Pro Sticky under Motion Effects |
| Color, height, logo or blur changes on scroll, set inside the editor | Sticky Header Effects for Elementor |
| A header that releases before the footer or shows only in some places | The Pro add-on |
Whatever you pick, write down which tool controls the header. The next person to edit the site will not have to guess why an offset appears.
Test the Header Before You Publish
Open the published page in a private window, so that you see what a visitor sees. Then work through this short list.
- Scroll slowly past the Scroll Distance and back to the top. The header should change once in each direction.
- Scroll quickly to the bottom and jump back up. Look for a header that stays in the wrong state.
- Open every dropdown and the mobile menu while the header is sticky.
- Click a link that jumps to a section and check that the heading is visible.
- Check a short page, where there may be little room to scroll at all.
- Resize the window across the desktop, tablet and mobile widths, then reload at each one.
- Check pages with popups, cookie notices or announcement bars, which can cover the header or be covered by it.
If one step fails, change a single setting and repeat the test. Clearing page, plugin and CDN caches between rounds saves you from judging an old version of the page.
Keep the Sticky Header Readable and Small
A sticky header is part of every screen the visitor reads, so restraint pays off. Use a background that gives menu text clear contrast over both light and dark sections. Keep the number of menu items reasonable. If the header has a button, make sure it stays easy to tap after the header shrinks. Check keyboard navigation as well: when someone tabs through the page, the focused item should not disappear underneath the header.
Do Not Stack Two Sticky Systems
Pick one method to control a header. If CSS, a theme option, Elementor sticky and a plugin all act on the same element, offsets and transitions can fight each other. When something looks wrong, turn the others off first, then enable one setting at a time. Our conflict troubleshooting guide shows the order to follow.
When Pro Features Help
The paid Pro add-on works with the free plugin and covers cases the free settings do not. Sticky Until releases the header at a boundary, such as before the footer. Display Conditions chooses where the sticky behavior shows. Reveal Animation adds an entrance effect, and Logo Image Swap shows a different logo image once the header sticks. See how to stop a sticky header at the footer for one example.
Frequently Asked Questions
How Do I Make a Header Sticky on Scroll in Elementor Free?
Install Sticky Header Effects for Elementor, select the header container, open the Advanced tab, expand Sticky Header Effects and switch Enable to On. You can also use CSS position sticky if your template structure allows it.
Why Does My Header Not Stick?
Check that Enable is on for the correct container, that the current device is included in Enable On, and that you have scrolled past the Scroll Distance. With plain CSS, look at the parent elements and any overflow settings. Clear your cache after changes.
Can the Header Change Only After Scrolling?
Yes. The background, border, shadow, height and logo settings apply once the page passes the Scroll Distance.
Does a Sticky Header Slow Down a Page?
It depends on what the header does and what else the page loads. Test your own page before and after with a speed testing tool, and watch for layout movement.
Can I Turn Off the Sticky Header on Phones?
Yes. Remove mobile from the Enable On setting and the plugin does not apply the effects at mobile widths.
Suggested Reading
Want the sticky header without the code?
Sticky Header Effects for Elementor drops in as a widget. Free plugin, no account needed.