0

I have a custom page that loads wordpress header and footer via get_header() and get_footer() functions, but elementor is not loaded here.

How do I load elementor css/js to custom page?

2
  • In which file you can enque css/js files ? Commented Feb 12, 2019 at 11:55
  • Have you tried setting the Page Template to either Elementor Full Width or Canvas? Commented Oct 21, 2019 at 21:46

1 Answer 1

0

You need to add the_content() to your code. Then, when you edit the page, elementor elements will be replaced with the_content(). So, the page template would be something similar to:

<?php
get_header();

if (have_posts()):
    while (have_posts()):
        the_post();
        the_content();
    endwhile;
else: ?>
<p>Sorry, nothing found here.</p>
<?php
endif;

get_footer();

?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.