6 min read

Sticky Header With a Top Bar in Elementor: How to Handle the Row Above the Header

Key Takeaways

  • A top bar above the header is a second row, and the sticky behavior applies to the section or container where you switch on Enable.
  • In the free plugin, put the effects on the main header row and decide whether the top bar should scroll away.
  • If both rows should stay on screen, or take turns, the Pro Multi-Sticky Coordination feature is built for that.
  • Test the two rows on a phone, where the combined height takes more of a small screen.
  • The older name for this guide’s topic, Above Header Section, is not a control in the plugin’s code, so this guide does not rely on it.

Many Elementor headers are two rows: a slim top bar with a phone number, a promotion or a language switcher, and a main row with the logo and menu. The question that follows is simple and easy to get wrong: what should the top bar do when the visitor scrolls? This guide covers the setup choices, using only controls that the plugin’s panel really has.

The Layout Problem

A sticky header has to pin something. In Sticky Header Effects, you switch on Enable in the Sticky Header Effects panel of a section or container, and that element gets the sticky behavior and every effect you set for it. If the top bar and the main row are two separate sections, only the one with Enable on is affected. The other scrolls with the page as normal.

That gives you three layouts to choose from. Which one you want depends on how important the top bar is to the visitor.

Three Ways to Handle the Top Bar

Let the Top Bar Scroll Away

Switch on Enable on the main header row only. The top bar sits above it at the top of the page and leaves when the visitor scrolls, and the main row sticks. This is the simplest layout and a good default, because the top bar usually holds information that visitors do not need while reading. Set the Scroll Distance to roughly the top bar’s height plus any space you want before the sticky state begins, and check the result on the live page. The header scroll distance guide helps with that choice.

Put Both Rows in One Container

If both rows should stay visible, one option is to build them inside a single section or container and switch on Enable on that wrapper. They then stick as one block. The drawback is that the block is taller, and the effects you choose, such as shrinking, apply to the whole wrapper. Keep the combined height modest, particularly on phones.

Use Multi-Sticky Coordination

If the rows are separate sections that should both stay, or take turns, the Pro add-on’s Multi-Sticky Coordination is designed for it. Each of the sections needs the Enable switch on and Multi-Sticky switched on, and the feature needs at least two sections on the page, with a maximum of five. It offers Stack and Sequential modes and a priority order, so the announcement bar and the main header behave in a planned way instead of fighting for the same strip of screen. The full walkthrough is in Announcement Bar and Sticky Header Together in Elementor.

Set Up the Main Row Step by Step

  1. Open the header template in Elementor and select the main header section or container.
  2. Go to the Advanced tab, open the Sticky Header Effects panel and switch on Enable.
  3. Set the Scroll Distance (px). The settings further down the panel are not applied until the page has been scrolled that far.
  4. Use Enable On to choose Desktop, Tablet and Mobile. On phones you may prefer to switch it off if two rows take too much room.
  5. Add the effects you want, such as a background color change or a shrink, one at a time.
  6. Open the live page in a private window and scroll slowly past the top bar.

What Goes Wrong With Two Rows

  • A gap can appear above the sticky row. Check the Scroll Distance and the section heights, and test with caching cleared.
  • The header jumps when it sticks. The sticky state changes the height or padding. Compare the settings before and after, and see the header layout shift primer.
  • The top bar is cut off on a phone. The combined height is too large for a small screen. Hide the top bar on mobile, or switch off sticky on mobile.
  • The two rows overlap. Only one of them should be set to stick unless you use a coordination feature. Review which section has Enable on.

When You Do Not Need Any of This

A header with a single row needs only the basic setup. The sticky header setup guide covers it from the start, and the comparison of sticky, fixed and static headers explains the positioning models behind it.

Frequently Asked Questions

Is there an Above Header Section effect in the plugin?

This guide used to describe one. The plugin’s code does not show a control by that name, so the guide now covers the real controls instead: Enable on the section you want to stick, and Multi-Sticky Coordination in Pro for several rows.

Can the top bar and the main header both stick?

Yes. Put them in one wrapper that has Enable on, or use Multi-Sticky Coordination in the Pro add-on for separate sections, with Enable on in each.

Which row should have Enable switched on?

Usually the main row with the logo and menu. The top bar normally scrolls away.

Does it work on Elementor containers as well as sections?

Yes. The panel is available on both.

Can I turn the sticky behavior off on mobile?

Yes. Use the Enable On control to choose which devices get the behavior.

Suggested Reading

Share

Want the sticky header without the code?

Sticky Header Effects for Elementor drops in as a widget. Free plugin, no account needed.

Get Started Free
Aditya Sharma
Written by

Aditya Sharma

Product and Growth at POSIMYTH, marketer who codes. Works on the POSIMYTH WordPress plugins, including Sticky Header Effects for Elementor.

Ready when you are

Your Next Elementor Sticky Header Is Three Clicks Away.

Two minutes to install, one click per effect. Turn on what your build needs and ship a sticky header for Elementor that holds its own on every screen, from the first scroll to the last.