0

I am building a theme and I would like it to be working with Elementor but for some reason, I don't understand I get the preview cannot be loaded error (We, re sorry, but something went wrong ....). Yet I feel I have the right loops. here is my code in page.php

<?php
get_header();
?>
<div id="content" class="site-content">
<div class="page-content">
<?php if (have_posts()):
        while (have_posts()): the_post(); ?>
            <article>
                <section class="content"><?php the_content(); ?></section>
            </article> 
    <?php endwhile;
endif; ?>
</div>
<?php
get_footer();

and here is my index.php

<?php
get_header();
?>
<section id="content" class="site-content">
    <div class="page-content">
        <?php if (have_posts()):while (have_posts()): the_post(); ?>
            <section class="content"><?php the_content(); ?></section>
        <?php endwhile; endif; ?>
    </div>
</section>
<?php
get_footer();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.