On this page
What this issue is
A sticky header is a bar that stays fixed at the top of the screen while you scroll. A sticky CTA is a button or bar, often pinned to the top or bottom, that keeps a call to action in view. Both use CSS such as position: fixed or position: sticky.
The bar is lifted out of the normal page flow. The browser does not leave room for it, so it can sit on top of other content. Common cases: the top of a page hidden under the header, an anchor link that scrolls a form title behind the bar, a bottom bar covering the submit button or cookie banner, and a bar that grows taller on small screens.
Why it costs you leads or sales
Visitors cannot act on what they cannot see. If a bar hides the first form field, the price or the headline they just clicked to, they may think the page is broken and leave. The impact is usually low, but it is worst on mobile, where the bar takes a larger share of a small screen.
- Ad or link clickVisitor lands on the page
- Click 'Get a quote' (#form)Page scrolls to the form
- Sticky bar covers form topHeading and first field hidden
- Form completedVisitor gives up or is confused
The visitor clicks an anchor link, but the sticky bar covers the form heading and first field.
The bar stays put while the content scrolls underneath it and part of it is hidden.
How to check if your site has it
This needs your eyes, because the overlap depends on screen size, scroll position and what the visitor clicked. Test the pages that matter most: landing pages, pricing, and any page with a form.
- Load the page and look at the top: is the headline or first line hidden under the header?
- Click every anchor link (for example #form or #pricing) and check the target heading is fully visible.
- Scroll slowly through the page and watch whether the bar covers buttons, fields or images.
- Open the page at phone width (about 360 to 390 px), tablet and desktop, using your browser's device mode.
- On a real phone, tap into a form field and check the keyboard and bar do not hide the field or submit button.
- Zoom the browser to 150% and 200% and check again, because the bar often gets taller.
- Check with the cookie banner open, as it can stack with a bottom bar.
- Press Tab through the page: does the focused link or field slide under the bar?
How to fix it
The core idea: tell the browser how much space the bar takes. Use scroll-padding-top on the page for anchor jumps and keyboard focus, and padding on the body or last section so a bottom bar never hides the end of the page.
Measure the bar at each breakpoint
Note its height on desktop, tablet and phone. Use a CSS variable such as --header-h so you change it in one place.
Add scroll offset for anchor links
Set scroll-padding-top on html to the bar height plus a small gap. Anchor jumps and keyboard focus then stop below the bar.
Reserve space for a top bar that is fixed
If the header uses position: fixed, add padding-top to body equal to its height. Sticky headers that stay in flow do not need this.
Reserve space for a bottom bar
Add padding-bottom to body (or the footer) equal to the bar height so the last content and the footer links are reachable.
Handle mobile separately
Shrink the bar on small screens, hide secondary items, or let it scroll away. Avoid two stacked bars (header plus bottom CTA plus cookie banner).
Retest every size
Repeat the manual check, including anchor links and the keyboard open on a phone.
:root {
--header-h: 72px;
}
@media (max-width: 640px) {
:root { --header-h: 56px; }
}
html {
scroll-padding-top: calc(var(--header-h) + 16px);
}
/* Only if the header is position: fixed */
body {
padding-top: var(--header-h);
}
/* Per-element alternative */
[id] {
scroll-margin-top: calc(var(--header-h) + 16px);
}
/* Bottom sticky CTA bar */
body {
padding-bottom: 64px;
}Add the CSS
Go to Appearance > Customize > Additional CSS (or Appearance > Editor > Styles > Additional CSS in block themes) and paste the snippet with your measured heights.
Check theme and builder options
Elementor, Divi and similar builders have sticky settings with an offset or a 'sticky on' device option. Use those first if they exist, and turn sticky off on mobile if it takes too much room.
Edit theme CSS
Go to Online Store > Themes > Customize > Theme settings > Custom CSS, or edit the theme's base.css or theme.css in the code editor.
Check the header section
Many themes have a 'Sticky header' option in the Header section settings. Try changing it before adding code, and check any announcement bar too.
Add scroll offset
Select the target section, then give it top padding equal to the navbar height, or add the CSS in Page settings > Custom code inside a style tag.
Adjust the Navbar
Check the Navbar's position (Fixed or Sticky) and set a smaller height at the Mobile breakpoints in the Style panel.
Review the header
In the Wix Editor, select the header and check Pin to screen. Turn it off or reduce header height on mobile in the mobile editor.
Move anchors
Drag the anchor element a little above the target section so the scroll lands clear of the pinned header.
Add the CSS
Go to Website > Website Tools > Custom CSS and add the scroll-padding-top rule.
Check fixed header settings
In Site Styles or the header editor, check the Fixed header option and any announcement bar, since they stack.
Add custom CSS
In the funnel or website builder, open Settings > Custom CSS (or the page's Custom Code area) and paste the snippet.
Check sticky elements
Open the header row or section settings and check for a sticky or fixed option. Retest the preview at mobile width.
Use the CSS variable approach
Put the snippet in your main stylesheet and keep --header-h in sync with the real header height. If the height changes with JavaScript, update the variable from script.
Before
- Click lands with the form title behind the bar
- First field partly hidden
- Visitor scrolls up to work out where they are
After
- Form title sits just below the bar
- All fields visible at every width
- Keyboard focus stays in view
How to confirm it's fixed
Hard refresh
Clear the cache or use a private window so you see the new CSS.
Click every anchor link
Check the target heading is fully visible with a small gap under the bar.
Scroll to the very bottom
Confirm the last section and footer links are not covered by a bottom bar.
Test on a real phone
Tap into each form field, open the keyboard and confirm the field and submit button stay visible.
How to prevent it happening again
- Keep the header height in one CSS variable and update it whenever the design changes.
- Recheck anchor links after any theme, builder or header change.
- Limit sticky elements to one at a time on mobile.
- Test new banners, announcement bars and chat widgets at phone width before publishing.
- Include a mobile scroll-through in your launch checklist for every new landing page.
How FunnelGuard handles this
FunnelGuard detects this issue only partly. Its robot visitor runs your journeys on a schedule and takes screenshots along the way. Those screenshots are the only check for this issue: you can look at them to spot a bar covering a heading, field or button.
FunnelGuard does not measure overlap on its own, and it does not raise an alert just because a sticky bar sits over content. It also does not test every screen size, keyboard-open state or anchor link position you might care about. If the overlap does stop a step from completing, such as a button the robot cannot reach, the failing step is re-checked from a second region and you get one alert with a screenshot and likely cause.
| Check | FunnelGuard | By hand |
|---|---|---|
| Screenshots of journey steps | Yes, you review them | Optional |
| Automatic overlap detection | No | Needed |
| Anchor link landing position | No | Needed |
| Phone keyboard open state | No | Needed |
| Step blocked by a covered button | Alerts if the step fails | Confirm the cause |
Questions people ask
Why is my sticky header covering my content?
A fixed or sticky header is taken out of the normal page layout, so the browser does not leave space for it. Content can scroll or jump underneath it. Add scroll-padding-top for anchor jumps and padding equal to the bar height where needed.
How do I stop a fixed header hiding anchor link targets?
Set scroll-padding-top on the html element to the header height plus a small gap, or scroll-margin-top on the target elements. The browser then stops the scroll below the header.
Why does my sticky CTA bar cover the submit button on mobile?
On small screens the bar takes up a larger share of the viewport, and the on-screen keyboard shrinks it further. Add bottom padding equal to the bar height, make the bar smaller on mobile, or hide it while a form is in focus.
Does a sticky header overlapping content hurt conversions?
It can, mainly when it hides a form field, price or button. The effect is usually modest, but it is worst on mobile and on pages with anchor links to a form. Fix it by testing each screen size.
How do I find the height of my sticky header?
Right-click the header, choose Inspect, then read its height in the Computed tab of your browser's developer tools. Check it at desktop and phone widths, because it often changes.
Can FunnelGuard detect a sticky header overlapping content?
Only partly. It takes screenshots of your journey steps, which you can review for overlap, but it does not detect overlap automatically. If the overlap makes a step fail, it alerts you on that failure.
Should I turn off the sticky header on mobile?
Often that is the simplest fix, especially on landing pages with forms. If you keep it, make it short and avoid stacking it with an announcement bar, cookie banner or bottom CTA.
Related issues
- CNV-094CTA button not clickable (covered by another element)Fix guide
- CNV-095CTA hidden below the fold on mobileFix guide
- CNV-097Anchor link (#form) scrolls nowhereFix guide
- CNV-107CTA tap target too small on mobileFix guide
- CNV-102Mobile hamburger menu doesn't openFix guide
- CNV-092Main CTA links to a 404Fix guide