Conditional depending on if user is editing in Elementor? #19556
stuartgreen-attain
announced in
Developers Community
Replies: 2 comments 12 replies
|
Yeah Elementor and Elementor Pro are both active and this is what happens when I print_r the \Elementor\Plugin::$instance; by itself On the frontend everything is empty, but when I edit a page with Elementor it doesn't load and goes into safe mode (and still doesn't load anything) |
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
I've done some research into this but the proposed solutions don't appear to be working for me, does anyone know if this has changed?
\Elementor\Plugin::$instance->preview->is_preview_mode();I have tried this and other variations such as
\Elementor\Plugin::$instance->editor->is_edit_mode()but I get the following error:I am using Elementor Version 3.7.2 and Elementor Pro Version 3.7.3
Is there any other option? I need to show/hide something based on if the user is editing in Elementor or not
All reactions