Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Sticky header CTA overlapping content: how to find and fix it

CNV-101Low impactPartlyBy FunnelGuardPublished Updated
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.

Where the overlap loses the visitor
  1. Ad or link clickVisitor lands on the page
  2. Click 'Get a quote' (#form)Page scrolls to the form
  3. Sticky bar covers form topHeading and first field hidden
  4. Form completedVisitor gives up or is confused

The visitor clicks an anchor link, but the sticky bar covers the form heading and first field.

A fixed bar sitting over the content

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.

Manual check
  • 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.

Fix the overlap
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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).

  6. Retest every size

    Repeat the manual check, including anchor links and the keyboard open on a phone.

Offset for a sticky or fixed headercss
: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;
}
Where to apply it on your platform
  1. 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.

  2. 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.

Anchor link to the form

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

Confirm the fix
  1. Hard refresh

    Clear the cache or use a private window so you see the new CSS.

  2. Click every anchor link

    Check the target heading is fully visible with a small gap under the bar.

  3. Scroll to the very bottom

    Confirm the last section and footer links are not covered by a bottom bar.

  4. 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

Habits that stop it coming back
  • 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.

What is covered and what is not
CheckFunnelGuardBy hand
Screenshots of journey stepsYes, you review themOptional
Automatic overlap detectionNoNeeded
Anchor link landing positionNoNeeded
Phone keyboard open stateNoNeeded
Step blocked by a covered buttonAlerts if the step failsConfirm 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.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: screenshots only.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.