• Hi there, nice job doing this plugin!

    I’m developing a template, and I’ve been trying (unsuccessfully) to check in my index.php (and also in page.php) if the page is being loaded in the Elementor’s editor, so I can show a slightly different version of the page if that’s the case. Is there any variable I could globalise to check this? I’ve tried checking isset ( $_GET[‘elementor’] ), but is returning NULL.

    Thank you in advance,

    Bruno Garcia

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Yakir Sitbon

    (@kingyes)

    You can see here how we know if elementor is active in this page: https://github.com/pojome/elementor/blob/master/includes/frontend.php#L315

    dudaster

    (@dudaster)

    I’m having the same issue. A client has elementor and it’s crashing because of my plugin.

    It’s not working (“Sorry, the content area was not found in your page.” Error) because I use setup_postdata($post) to add a list of featured posts as a shortcode, and at the end of the plugin I return to setup_postdata($oldpost) (the edited page) and still it’s not working.

    It would be nice to have some functions to be able to deal with this kind of issues.

    dudaster

    (@dudaster)

    actually I was mistaken this function messes with elementor: the_excerpt_max_charlength

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Check for “edit-mode” in front-end template’ is closed to new replies.