CSS techniques

How to add a glassmorphism effect in Elementor

Add a frosted glass effect to an Elementor container with a few lines of CSS. Steps for Elementor Pro and the free version, with code to copy and fixes for when it doesn’t show.

To add a glassmorphism effect in Elementor, give an inner container a semi-transparent background and a backdrop-filter: blur() rule, and place it over a colourful background. With Elementor Pro you paste the CSS into the container’s Advanced › Custom CSS using the selector keyword. With the free version you add a CSS class to the container and paste the CSS into your theme’s Additional CSS.

This guide walks through both, with code you can copy, plus the two settings that most often stop the effect from showing.

Key takeaways

  • Glass needs something behind it: put the glass container inside a parent with a background image or gradient.
  • Elementor Pro: paste CSS starting with selector into the container’s Advanced › Custom CSS.
  • Elementor (free): add a class under Advanced › CSS Classes and paste the CSS into Appearance › Customise › Additional CSS.
  • Leave the glass container’s own Elementor background empty, or it can cover the effect.

What you’re building

A glass panel is a container whose background is mostly transparent, with the content behind it blurred. The blur comes from the CSS property backdrop-filter, which blurs whatever sits behind the element rather than the element itself. If you want the background on the theory first, the glassmorphism guide covers how it works and why each value matters.

In Elementor terms you need two containers:

  1. An outer container with a background image, gradient or video. This is what shows through the glass.
  2. An inner container inside it, holding your heading, text and button. This becomes the glass.

Set the outer container’s background in its Style tab as usual. For a quick, colourful backdrop you can paste a mesh gradient or CSS gradient into the outer container instead.

Elementor Pro: paste into Custom CSS

Elementor Pro lets you add CSS to a single element, and replaces the word selector with that element’s own unique selector. That keeps the effect on this one container.

  1. Select the inner container and open Advanced › Custom CSS.
  2. Paste the code below.
  3. Click Update and view the page.
selector {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(11, 16, 32, 0.18);
}

To reuse the effect across the site, add the same CSS to Site Settings › Custom CSS with a class name in place of selector, then give each glass container that class.

Elementor (free): use a CSS class

Elementor’s own Custom CSS box is a Pro feature, but the free version still lets you add a CSS class to any element. You then put the CSS in your theme’s Additional CSS, which WordPress provides for every classic theme.

  1. Select the inner container, open Advanced › CSS Classes and type rf-glass, without the dot.
  2. In the WordPress dashboard, go to Appearance › Customise › Additional CSS and paste the code below.
  3. Publish the Customiser, then update and view the page.
.rf-glass {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(11, 16, 32, 0.18);
}

If you use a block theme, Additional CSS lives under Appearance › Editor › Styles instead. Any custom CSS box your theme provides works too.

Why isn’t the glass effect showing?

What you seeLikely causeFix
A solid box, no transparencyThe container has its own Elementor backgroundClear the background in the inner container’s Style tab
Transparent, but nothing is blurredThe area behind is a flat colourAdd an image or gradient to the outer container
No effect at all (free version)Class typed with a dot, or CSS not savedUse rf-glass in CSS Classes and publish the Customiser
Blur missing inside another glass panelA parent element also has a filter, opacity or backdrop-filterRemove the effect from the parent, or move the panel out of it
Old styles still showingPage or plugin cacheClear your caching plugin and hard refresh

The first cause is the most common. Elementor writes its own background colour for an element with a more specific selector than a plain class, so a colour set in the Style tab can win over your glass background.

Make it readable and smooth

  • Check contrast. Text on glass changes contrast as the background changes. Test it against the lightest and darkest parts behind the panel with the contrast checker, and raise the background opacity if it fails.
  • Respect reduced transparency. Some people turn transparency effects off in their system settings. You can serve them a solid background with @media (prefers-reduced-transparency: reduce) where browsers support it.
  • Use it sparingly on mobile. Blur is handled by the graphics hardware and a few panels are fine, but many large glass sections on one page can feel sluggish on low-end phones.
  • Add texture if you like. A little grain on the outer background makes the frosting more visible.

Tip: Elementor’s responsive controls still apply. If the glass panel looks too busy on phones, raise its background opacity in a mobile-only rule, or switch to a plain card below the tablet breakpoint.

Generate your own glass settings

The values above are a good start, but every background needs slightly different blur and opacity. In the glassmorphism generator, tune the effect over three backdrops, choose Elementor Pro or Elementor (free) under Paste into, and copy code that’s already written for your setup, with the steps beneath it.

Sources: Elementor: Custom CSS (Pro).