-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-three-columns.php
44 lines (38 loc) · 1014 Bytes
/
template-three-columns.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
// Template Name: Three Column
// Template Post Type: post, page
// change template part?
?>
<?php
/**
* The template for displaying all single posts
*
* @package Tower
*/
get_header( 'post' );
?>
<main id="primary" class="site-main">
<div class="container sidebar-page">
<aside class="left-sidebar">
<?php get_sidebar( 'left' ); ?>
<!-- I put 'left' but have to figure out how to build a three-column page - need to create sidebar-left.php-->
</aside>
<article class="blog-page">
<header>
<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
</header>
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', get_post_format() );
endwhile; // End of the loop.
?>
</article><!-- .article-post -->
<aside class="right-sidebar">
<?php get_sidebar(); ?>
</aside>
</div><!-- .container .sidebar-page-->
</main><!-- #main -->
<?php
// get_sidebar();
get_footer();