Integration with elementor location


#1

Hello friends,
I have the following problem I have a site already built and now I will implement Elementor to edit some sections creating custom WidGet and custom location. but when I add the location functions in my theme of “sage” in web I get the following error.

**Fatal error** : Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined function elementor_theme_do_location() in

and that is correct in sage there is no “elementor_theme_do_location” function as I can do to integrate sage with Elementor Pro someone could give me advice.

To add a custom location, I must use these instructions to use a location in Elementor. but before defining them in my file function.php

if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'header_content' ) ) {
    elementor_theme_do_location( 'header_content' );
  }

#2

Is elementor_theme_do_location a function provided by Elementor? If so, try adding a backwards slash in front like so \elementor_theme_do_location( 'header_content' );