{"id":80,"date":"2026-10-18T17:53:19","date_gmt":"2026-10-18T17:53:19","guid":{"rendered":"https:\/\/refracttools.com\/blog\/?p=80"},"modified":"2026-10-18T17:53:19","modified_gmt":"2026-10-18T17:53:19","slug":"glassmorphism-elementor","status":"publish","type":"post","link":"https:\/\/refracttools.com\/blog\/css-techniques\/glassmorphism-elementor\/","title":{"rendered":"How to add a glassmorphism effect in Elementor"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">To add a glassmorphism effect in Elementor, give an inner container a semi-transparent background and a <code>backdrop-filter: blur()<\/code> rule, and place it over a colourful background. With Elementor Pro you paste the CSS into the container&#8217;s <strong>Advanced \u203a Custom CSS<\/strong> using the <code>selector<\/code> keyword. With the free version you add a CSS class to the container and paste the CSS into your theme&#8217;s Additional CSS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide walks through both, with code you can copy, plus the two settings that most often stop the effect from showing.<\/p>\n\n\n\n<div class=\"wp-block-group is-style-refract-takeaways is-layout-constrained wp-block-group-is-layout-constrained\">\n<h3 class=\"wp-block-heading\">Key takeaways<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Glass needs something behind it: put the glass container inside a parent with a background image or gradient.<\/li>\n\n\n<li>Elementor Pro: paste CSS starting with <code>selector<\/code> into the container&#8217;s Advanced \u203a Custom CSS.<\/li>\n\n\n<li>Elementor (free): add a class under Advanced \u203a CSS Classes and paste the CSS into Appearance \u203a Customise \u203a Additional CSS.<\/li>\n\n\n<li>Leave the glass container&#8217;s own Elementor background empty, or it can cover the effect.<\/li>\n<\/ul>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">What you&#8217;re building<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A glass panel is a container whose background is mostly transparent, with the content behind it blurred. The blur comes from the CSS property <code>backdrop-filter<\/code>, which blurs whatever sits behind the element rather than the element itself. If you want the background on the theory first, the <a href=\"https:\/\/refracttools.com\/blog\/css-techniques\/glassmorphism-css-backdrop-filter\/\">glassmorphism guide<\/a> covers how it works and why each value matters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In Elementor terms you need two containers:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>An <strong>outer container<\/strong> with a background image, gradient or video. This is what shows through the glass.<\/li>\n\n\n<li>An <strong>inner container<\/strong> inside it, holding your heading, text and button. This becomes the glass.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Set the outer container&#8217;s background in its Style tab as usual. For a quick, colourful backdrop you can paste a <a href=\"https:\/\/refracttools.com\/mesh-gradient-generator\/\">mesh gradient<\/a> or <a href=\"https:\/\/refracttools.com\/css-gradient-generator\/\">CSS gradient<\/a> into the outer container instead.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Elementor Pro: paste into Custom CSS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Elementor Pro lets you add CSS to a single element, and replaces the word <code>selector<\/code> with that element&#8217;s own unique selector. That keeps the effect on this one container.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select the inner container and open <strong>Advanced \u203a Custom CSS<\/strong>.<\/li>\n\n\n<li>Paste the code below.<\/li>\n\n\n<li>Click <strong>Update<\/strong> and view the page.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>selector {\n  background: rgba(255, 255, 255, 0.18);\n  backdrop-filter: blur(14px) saturate(160%);\n  -webkit-backdrop-filter: blur(14px) saturate(160%);\n  border: 1px solid rgba(255, 255, 255, 0.35);\n  border-radius: 20px;\n  box-shadow: 0 8px 32px rgba(11, 16, 32, 0.18);\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To reuse the effect across the site, add the same CSS to <strong>Site Settings \u203a Custom CSS<\/strong> with a class name in place of <code>selector<\/code>, then give each glass container that class.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Elementor (free): use a CSS class<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Elementor&#8217;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&#8217;s Additional CSS, which WordPress provides for every classic theme.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select the inner container, open <strong>Advanced \u203a CSS Classes<\/strong> and type <code>rf-glass<\/code>, without the dot.<\/li>\n\n\n<li>In the WordPress dashboard, go to <strong>Appearance \u203a Customise \u203a Additional CSS<\/strong> and paste the code below.<\/li>\n\n\n<li>Publish the Customiser, then update and view the page.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>.rf-glass {\n  background: rgba(255, 255, 255, 0.18);\n  backdrop-filter: blur(14px) saturate(160%);\n  -webkit-backdrop-filter: blur(14px) saturate(160%);\n  border: 1px solid rgba(255, 255, 255, 0.35);\n  border-radius: 20px;\n  box-shadow: 0 8px 32px rgba(11, 16, 32, 0.18);\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you use a block theme, Additional CSS lives under <strong>Appearance \u203a Editor \u203a Styles<\/strong> instead. Any custom CSS box your theme provides works too.<\/p>\n\n\n<aside class=\"tool-card tool-card--inline\"><span class=\"swatch\" style=\"background:linear-gradient(135deg,#5ce1c6,#7a5cff)\" aria-hidden=\"true\"><\/span><div class=\"tool-card__body\"><p class=\"tool-card__eyebrow\">Free tool<\/p><p class=\"tool-card__name\">Glassmorphism generator<\/p><p class=\"tool-card__blurb\">Frosted glass panels with backdrop-filter, previewed over real backgrounds.<\/p><\/div><a class=\"btn primary\" href=\"https:\/\/refracttools.com\/glassmorphism-generator\/\">Try it free <span aria-hidden=\"true\">\u2192<\/span><\/a><\/aside>\n\n\n\n<h2 class=\"wp-block-heading\">Why isn&#8217;t the glass effect showing?<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><div class=\"table-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"Scrollable table\"><table><thead><tr><th>What you see<\/th><th>Likely cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td>A solid box, no transparency<\/td><td>The container has its own Elementor background<\/td><td>Clear the background in the inner container&#8217;s Style tab<\/td><\/tr><tr><td>Transparent, but nothing is blurred<\/td><td>The area behind is a flat colour<\/td><td>Add an image or gradient to the outer container<\/td><\/tr><tr><td>No effect at all (free version)<\/td><td>Class typed with a dot, or CSS not saved<\/td><td>Use <code>rf-glass<\/code> in CSS Classes and publish the Customiser<\/td><\/tr><tr><td>Blur missing inside another glass panel<\/td><td>A parent element also has a filter, opacity or backdrop-filter<\/td><td>Remove the effect from the parent, or move the panel out of it<\/td><\/tr><tr><td>Old styles still showing<\/td><td>Page or plugin cache<\/td><td>Clear your caching plugin and hard refresh<\/td><\/tr><\/tbody><\/table><\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Make it readable and smooth<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Check contrast.<\/strong> Text on glass changes contrast as the background changes. Test it against the lightest and darkest parts behind the panel with the <a href=\"https:\/\/refracttools.com\/contrast-checker\/\">contrast checker<\/a>, and raise the background opacity if it fails.<\/li>\n\n\n<li><strong>Respect reduced transparency.<\/strong> Some people turn transparency effects off in their system settings. You can serve them a solid background with <code>@media (prefers-reduced-transparency: reduce)<\/code> where browsers support it.<\/li>\n\n\n<li><strong>Use it sparingly on mobile.<\/strong> 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.<\/li>\n\n\n<li><strong>Add texture if you like.<\/strong> A little <a href=\"https:\/\/refracttools.com\/noise-texture-generator\/\">grain<\/a> on the outer background makes the frosting more visible.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group is-style-refract-callout is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>Tip:<\/strong> Elementor&#8217;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.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Generate your own glass settings<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The values above are a good start, but every background needs slightly different blur and opacity. In the <a href=\"https:\/\/refracttools.com\/glassmorphism-generator\/\">glassmorphism generator<\/a>, tune the effect over three backdrops, choose <strong>Elementor Pro<\/strong> or <strong>Elementor (free)<\/strong> under <strong>Paste into<\/strong>, and copy code that&#8217;s already written for your setup, with the steps beneath it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Sources: <a href=\"https:\/\/elementor.com\/help\/how-to-use-selector-in-the-custom-css-tab\" rel=\"noopener\" target=\"_blank\">Elementor: Custom CSS (Pro)<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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\u2019t show.<\/p>\n","protected":false},"author":1,"featured_media":79,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_refract_tool":"glassmorphism-generator","footnotes":""},"categories":[8],"tags":[37,11,39,40],"class_list":["post-80","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css-techniques","tag-elementor","tag-glassmorphism","tag-page-builders","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/80","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/comments?post=80"}],"version-history":[{"count":1,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/80\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/80\/revisions\/121"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/media\/79"}],"wp:attachment":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/media?parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/categories?post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/tags?post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}