Copied!
It's on your clipboard.
You’ve been offline for 0 second. Please check your Internet connection.

Help Us Improve

Found an issue or have an idea? Let us know.
Select all that apply...
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Hide Elements in Editor But Visible On Frontend
Preview
Overview

This snippet hides a chosen element only inside the Elementor editor, while keeping it visible on the live site. It’s useful when certain design elements (like overlays, animations, or widgets) get in the way while editing but should still appear to visitors.

Documentation
Code Setup
Walkthrough

Copy To Elementor
Setup A: Hide Element With Selector Tag

Add this code inside the Custom CSS field of an element in Elementor. The selector tag ensures the style applies only to that specific element, and the element will be hidden only while editing, not on the live site.

Language
Copy
.elementor-edit-mode selector {
  display: none !important;
}
Setup B: Hide Elements in Editor With Custom Class

Add this code with a snippets plugin in <head>, or place it in Element CSS, Page CSS, or Site Settings. Apply the "ou-hide-in-editor" class to any element you want hidden while editing in Elementor. It will still remain visible on the live site.

Language
Copy
.elementor-edit-mode .ou-hide-in-editor {
  display: none !important;
}

Language
Copy

Language
Copy

Language
Copy

Language
Copy
Publish and preview live

Some solutions only work on the live site. Always publish and test after each change, as results may not appear in the editor.

Absolutely Codefree
If you were expecting some fancy snippet, sorry. This one runs just fine on its own.
C’mon, You Got This
Do we really need to spell this one out? It’s as straightforward as it gets.
Resorce Details
Collection
Basics
Category
Category
Visibility
Interaction
Builder
Last Updated
September 16, 2025