11 min read

Turn Off an Elementor Sticky Header on Specific Pages

A sticky header is rarely wanted everywhere. The landing page that is built as one long story does not need a menu following the visitor down. The checkout page may be better without a header floating over the form. The member area might need a different header from the public site. The usual answer is to build several headers and swap them by hand, which works until you have to maintain all of them.

This guide shows how to turn off an Elementor sticky header on specific pages, or turn it on for only some of them, using the Display Conditions feature in Sticky Header Effects Pro. Pro is the paid add-on to the free Sticky Header Effects for Elementor plugin, which has more than 300,000 active installs. Everything below comes from the add-on’s own settings and code, including how the include and exclude lists combine, which is the part that most often trips people up.

Key Takeaways

  • Display Conditions is a Pro feature. It sits in the Sticky Header Effects panel on the Advanced tab, and appears once the free plugin’s Enable switch is on.
  • There are two lists: Include On (Show Sticky) and Exclude On (Hide Sticky).
  • The sticky behavior applies where an Include rule matches and no Exclude rule does. An empty Include list counts as a match.
  • With no rules at all, the sticky behavior applies everywhere, as it does without the feature.
  • Rules can target pages, post types, taxonomies, terms, archives, logged-in state, user roles and URL fragments.
  • Conditions are not evaluated inside the Elementor editor, so always check the live page.

What Display Conditions Does

Display Conditions does not hide your header. That is an important distinction. The header stays on the page, as it would anyway. What the feature controls is whether the Sticky Header Effects behavior applies to it: the sticky state, the scroll effects and the settings you chose for that state. On a page where the conditions fail, the header is an ordinary header that scrolls away with the content.

Technically, the add-on checks your rules on the server while the page is built. When a page does not qualify, it marks the header, and a very small script removes the class that the Enable switch adds to that header before the scroll handler can act. This approach keeps the free plugin’s own scripts untouched, and it works for both sections and containers.

If you want a different header design on certain pages, rather than the same header without sticky behavior, that is a different job. Elementor’s Theme Builder display conditions are the tool for that, and the header builder guide explains how header templates work.

What You Need Before You Start

  • Elementor on your site, Free or Pro, with a header built as a section or container.
  • The free Sticky Header Effects for Elementor plugin, installed and active.
  • The Sticky Header Effects Pro add-on, installed and active with a valid license.
  • A header that already sticks. The sticky header setup guide walks through that first.

Step 1: Open the Sticky Header Effects Panel

Edit the header template in Elementor, select the section or container that wraps the header and open the Advanced tab. In the Sticky Header Effects panel, switch on Enable. Display Conditions only acts on a header where this switch is on, so a header without it is unaffected by any rule you write.

Step 2: Switch On Display Conditions

Scroll down in the panel and turn on Display Conditions. The description under it says: Control where the sticky behavior applies. With no rules, sticky shows everywhere. Two repeater lists appear, named Include On (Show Sticky) and Exclude On (Hide Sticky), with a note explaining how they combine.

How the Include and Exclude Lists Combine

This is the rule to learn before you add anything. The plugin’s own note puts it in one line: sticky shows where Include matches and Exclude does not. Spelled out, the logic has four cases.

  • Both lists empty. Sticky applies everywhere. The feature does nothing.
  • Only Include has rules. Sticky applies only on pages that match at least one Include rule.
  • Only Exclude has rules. Sticky applies everywhere except pages that match at least one Exclude rule.
  • Both have rules. Sticky applies on pages that match an Include rule and do not match any Exclude rule. Exclude wins when both match.

Within a list, rules work as alternatives. A page needs to match only one row of the Include list to pass, and one row of the Exclude list is enough to trigger the exclusion. Think of each list as a list of reasons.

Diagram showing Include and Exclude lists combining so sticky applies only when an Include rule matches and no Exclude rule does
How the Include and Exclude lists decide whether sticky applies on a page.

For most sites the simplest approach is to use only the Exclude list. Leave Include empty, add the pages that should not have a sticky header, and everything else keeps the default behavior. Use Include when you want sticky on a handful of pages and nowhere else.

Step 3: Add Your Rules

Click to add a row to the list you want. Each row has a Rule Type dropdown. Depending on the type, a second field appears to narrow it down. The available types are below, grouped by what they target.

Rules for Specific Pages

  • Entire Site. Matches every page. It is mainly useful in the Include list, or as an Exclude rule that you plan to override by editing the lists later.
  • Front Page. Matches the page set as your site’s front page.
  • Posts Page (Blog). Matches the page that shows your latest posts.
  • 404 Page. Matches the not-found page. A good place to switch off sticky, since the visitor has nowhere to go anyway.
  • Search Results. Matches the search results page.
  • Specific Post / Page. Lets you choose individual posts or pages from a dropdown that lists them by type and title. The dropdown covers published posts and pages up to a limit, so on a large site use the Post Type or URL Contains rule instead.

Rules for Groups of Content

  • Post Type. Matches every item of a public post type, such as all posts, all pages or a custom type.
  • Taxonomy Archive. Matches the archive pages of a taxonomy, such as the category or tag archives.
  • Specific Term. Matches a chosen category or tag, both on its archive page and on any single post that has that term assigned.
  • Any Archive. Matches any archive page.
  • Author Archive. Matches the author archive pages.

Rules for Visitors

  • User Logged In. Matches visitors who are signed in.
  • User Logged Out. Matches visitors who are not.
  • User Role. Matches if the visitor has any of the roles you select.

Rules for URLs

  • URL Contains. Matches when the current URL contains the text you enter. The comparison ignores letter case, and the URL includes any query string.

URL Contains is the catch-all. If a group of pages shares a path, such as a section called checkout or an account area, one rule covers all of them. Use a fragment that is specific enough, because a short fragment such as a single common word can match pages you did not intend.

Four Common Setups

Turn Sticky Off on a Landing Page

Leave Include empty. In Exclude, add a Specific Post / Page rule and choose the landing page. Every other page keeps the sticky header.

Turn Sticky Off on Checkout and Account Pages

In Exclude, add a URL Contains rule for the path shared by those pages. This is easier to maintain than listing each page, and it covers pages you add later under the same path.

Use Sticky Only on Blog Posts

In Include, add a Post Type rule and choose Posts. Leave Exclude empty. Sticky should now apply on blog posts and nowhere else. Check archive pages on the live site to be sure. If you also want it on the blog index, add a Posts Page (Blog) rule to Include.

Turn Sticky Off for Logged-In Members

In Exclude, add a User Logged In rule. Read the caching note below before you do this, because rules that depend on the visitor change how the page is cached.

Caching and Logged-In Rules

Rules about the page, such as a post, a post type or a URL, give the same result for every visitor, so a cached copy of the page is safe. Rules about the visitor are different. User Logged In, User Logged Out and User Role produce different markup for different people. If a full-page cache stored one version and served it to everyone, a visitor could get the wrong behavior.

To prevent that, the add-on marks any page that uses one of those three rules as not cacheable. It defines the standard do-not-cache constant and sends no-cache headers, which the common caching plugins and many hosts honor. In practice this means you should expect those pages to bypass the page cache. If a page rule gives you what you need, prefer it, and keep the visitor rules for the cases that truly need them. After you set up a visitor rule, test it while logged in and logged out, in a private window.

Testing Your Rules

The most important thing to know is that the Elementor editor ignores the rules. This is deliberate: it lets you always see and edit the sticky settings while you build, even when a rule such as Logged Out would otherwise hide them from you. The side effect is that the editor preview never shows the effect of your conditions.

  1. Save the header and open the page on the live site in a private window.
  2. Scroll past the Scroll Distance. If the header should be sticky, it should stick and apply its effects. If it should not, it should scroll away like any element.
  3. Test at least one page that should match and one that should not.
  4. For visitor rules, test both logged in and logged out, with and without the role you chose.
  5. Clear page cache, optimization cache and the CDN cache after any change.

Troubleshooting

The Display Conditions Switch Is Missing

Check that the Enable switch is on, that the Pro add-on is active next to the free plugin and that the license is valid. The Display Conditions controls appear only when Enable is on.

Sticky Still Works on a Page I Excluded

Check that the rule type matches that page. A Specific Post / Page rule needs the exact page chosen, and a URL Contains rule needs a fragment that really appears in that page’s URL. Also check that you edited the header template that is used on that page, because a site can have more than one. Then clear every cache.

Sticky Stopped Working Everywhere

If Include has rules, only pages that match them get sticky. An Include list with one narrow rule switches sticky off on all other pages, which is correct but easy to forget. Clear the Include list, or add an Entire Site rule, to bring it back.

The Rule Works for Me but Not for Visitors

This usually points to caching, or to being logged in while you test. Test in a private window, and check whether a rule depends on the visitor. Then see the caching section above.

The Header Changes Size Instead of Staying Put

A header with sticky effects switched off for a page is a normal header, and any effects that depend on the sticky state should not apply. If a page needs a different header design, assign a different header template to it with Elementor’s Theme Builder. The header builder guide explains how templates work.

Frequently Asked Questions

Is Display Conditions Free or Pro?

It is part of Sticky Header Effects Pro. The free plugin provides the panel and the Enable switch that it needs.

Does It Hide the Header on Excluded Pages?

No. It only controls whether the sticky behavior and its effects apply. The header itself stays on the page.

What Happens If I Add No Rules?

Nothing changes. With no rules in either list, sticky applies everywhere, as it does without the feature.

What Wins When a Page Matches Both Lists?

Exclude wins. Sticky applies only where an Include rule matches and no Exclude rule does.

Can I Use It With Custom Post Types?

Yes. The Post Type rule lists the public post types on your site, apart from attachments.

Can I Target Pages With a Common URL Path?

Yes. Use the URL Contains rule with the shared part of the path. It ignores letter case and looks at the whole URL, including the query string.

Does It Work on Elementor Containers and Sections?

Yes. The controls are available for both.

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.