FEATURE Refactor structure of footer, header, front-page, and page templates to move the main tag into templates files
This commit is contained in:
parent
3d140c0475
commit
0966e97b6c
|
|
@ -1,5 +1,3 @@
|
|||
</main>
|
||||
|
||||
<?php do_action('tailpress_content_end'); ?>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<?php get_header(); ?>
|
||||
<main id="content" class="site-content flex-grow">
|
||||
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<?php if (have_posts()) : ?>
|
||||
<?php
|
||||
while ( have_posts() ) :
|
||||
while (have_posts()) :
|
||||
the_post();
|
||||
the_content();
|
||||
?>
|
||||
|
|
@ -13,5 +13,5 @@
|
|||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
<?php get_footer(); ?>
|
||||
</main>
|
||||
|
|
@ -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">
|
||||
16
page.php
16
page.php
|
|
@ -1,16 +1,18 @@
|
|||
<?php get_header(); ?>
|
||||
|
||||
|
||||
<?php if (have_posts()) : ?>
|
||||
<?php
|
||||
<main id="content" class="site-content flex-grow">
|
||||
<?php if (have_posts()) : ?>
|
||||
<?php
|
||||
while (have_posts()) :
|
||||
the_post();
|
||||
the_content();
|
||||
?>
|
||||
?>
|
||||
|
||||
|
||||
<?php endwhile; ?>
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php get_footer();
|
||||
<?php get_footer(); ?>
|
||||
</main>
|
||||
Loading…
Reference in New Issue
Block a user