How to Create a Sticky Header in Astra + Elementor (Free Version, No Pro Needed)

If you’re using the free version of Elementor, you’ve probably already realized there’s no way to make your header sticky — which is probably why you’re here. Normally, you’d need Elementor Pro or a premium feature for this. In this post, I’ll show you how to do it using the free version of both Elementor and the Astra theme.

Astra’s header uses the .site-header class, so that’s the class we’ll need to target with our CSS:

Paste this code into Appearance → Customize → Additional CSS.

CSS
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
}

Optionally, you can add a subtle box shadow to give the header a bit more depth. If your header is using a light background, try this:

CSS
.ast-primary-header-bar {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

If your header uses a dark background color, this CSS will work better:

CSS
.ast-primary-header-bar {
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

Watch the tutorial on YouTube:

Watch Video

How to Create a Sticky Header in Astra + Elementor (Free Version, No Pro Needed)

YouTubeWatch now →

Continue Exploring

Explore All Guides

Tools We Recommend

Recommended Tools

Shopify

Shopify is one of the most powerful all-in-one eCommerce platforms available today, designed to help anyone—from beginners to…

4.7
Updraft

UpdraftPlus Review – The Easiest Way to Back Up Your WordPress Website If you’re running a WordPress site…

4.7
Free / Pro from $70/yr (2 sites)
Zillion Designs

At manzari.com, we’ve been using Zillion Designs since 2015 as our go-to platform for logo design and brand…

4.5
From $199 (+ 20% processing fee)

Affiliate links — we may earn a commission at no extra cost to you.

About Manzari

Manzari is an independent publisher focused on WordPress, website technology, business software, and practical tech guides. Our goal is to help you choose better tools and make informed decisions with honest, transparent recommendations.

57+
In-depth WordPress guides
23+
Real tools tested & reviewed
21yr
Building with WordPress
100%
No paid placements, ever