Skip to content

Commit 3b64c02

Browse files
author
Brylie Christopher Oxley
authored
Merge pull request #199 from MuluhGodson/container
Add full-width template
2 parents 14630ba + ffe574a commit 3b64c02

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

full-width.php

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
/* Template name: Full Width */
3+
get_header();
4+
the_post();
5+
?>
6+
7+
<section class="main-content">
8+
<section class="entry-page-content">
9+
<div class="content">
10+
<?php the_content(); ?>
11+
</div>
12+
<footer class="entry-footer">
13+
<?php get_template_part( 'inc/partials/entry/page', 'footer' ); ?>
14+
</footer>
15+
</section>
16+
17+
</section>
18+
<?php get_footer(); ?>

header.php

+6-5
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@
4444
);
4545
?>
4646
</nav>
47+
<?php
48+
if (function_exists('yoast_breadcrumb')) {
49+
yoast_breadcrumb('<p id="breadcrumbs">', '</p>');
50+
}
51+
?>
4752
</div>
48-
<?php
49-
if (function_exists('yoast_breadcrumb')) {
50-
yoast_breadcrumb('<p id="breadcrumbs">', '</p>');
51-
}
52-
?>
53+
5354
<?php if (is_active_sidebar('after-navigation')) : ?>
5455
<div class="container notification-container push-up">
5556
<div class="columns is-centered is-gapless">

page.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
the_post();
44
?>
55

6-
<section class="main-content">
6+
<section class="main-content content">
77
<section class="entry-page-content">
8-
<div class="content">
8+
<div class="container">
99
<?php the_content(); ?>
1010
</div>
1111
<footer class="entry-footer">

0 commit comments

Comments
 (0)