• Resolved stratboy

    (@stratboy)


    Hi, on the frontend (php page templates) , is there a way to check with php if the current page is managed by Elementor? Somethig like is_elementor()?

    Thank you.

    P.s.
    If not, you could maybe consider to add it to your API?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Stratboy,
    This question has more to do with programming outside Elementor and is a better fit for GitHub. This forum is more for support related questions.

    Thread Starter stratboy

    (@stratboy)

    I think the problem starts with Elementor and get solved by using Elementor, so it’s ‘inside’ Elementor, not ‘outside’. The solution is the following:

    function is_elementor(){
      global $post;
      return \Elementor\Plugin::$instance->db->is_built_with_elementor($post->ID);
    }
    • This reply was modified 7 years, 2 months ago by stratboy.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A way to tell if current page is Elementor page?’ is closed to new replies.