FEATURE Refactor structure of footer, header, front-page, and page templates to move the main tag into templates files

This commit is contained in:
Antoine M 2026-01-30 10:16:31 +01:00
parent 3d140c0475
commit 0966e97b6c
4 changed files with 19 additions and 20 deletions

View File

@ -1,5 +1,3 @@
</main>
<?php do_action('tailpress_content_end'); ?>

View File

@ -1,5 +1,5 @@
<?php get_header(); ?>
<main id="content" class="site-content flex-grow">
<?php if (have_posts()) : ?>
<?php
@ -13,5 +13,5 @@
<?php endif; ?>
<?php
get_footer();
<?php get_footer(); ?>
</main>

View File

@ -39,4 +39,3 @@
<?php do_action('tailpress_content_start'); ?>
<?php get_template_part('template-parts/utils/scroll-top'); ?>
<main id="content" class="site-content flex-grow">

View File

@ -1,6 +1,6 @@
<?php get_header(); ?>
<main id="content" class="site-content flex-grow">
<?php if (have_posts()) : ?>
<?php
while (have_posts()) :
@ -12,5 +12,7 @@
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php get_footer();
<?php get_footer(); ?>
</main>