• Join the Best Wordpress and Elementor Support forum

    Provide or get advice on everything Elementor and Wordpress, ask questions, gain confirmation or just become apart of a friendly, like minded community who love Wordpress and Elementor


    Join us!

Space between footer and content - Elementor in my theme

A

artistarj

New Member
Hi everybody
This is the first site I did with Elementor. I know most people create sites with Elementor from start to finish, but I already had my header and footer done and wanted to use Elementor only for the content.

So, I did what I do in all my Wordpress sites:

1) Header.php - I put the code until the beginning of the content (in this case, the open <main> tag), with all those functions and Wordpress links.
2) Footer.php - Begins with the end of the content (in this case, the </main> tag) and the <footer>, with wp_footer(); function before </body>
3) front-page.php - When it comes to other non-Elementor sites, I usually put some HTML tags and use loops and there are no gaps.

However, for this Elementor site, I only used the the_content(); function in my front-page.php, that looks like this:

<?php get_header(); ?>
<?php the_content(); ?>
<?php get_footer(); ?>


There is no space between my Header and the Elementor content, but there is a gap between the content and the footer.
I inspected it searching for margins in the code/Elementor, but found nothing.

Am I using the correct function to call Elementor content in my front-page.php ?

Thanks in advance.
 

Latest Resources

Other Elementor Resources

elementor official

Still stuck? Ask the forum

Post your question with a screenshot and a link if you can, and a member will usually reply within a day. Free to join, no sales pitch.

Create a free account
Top