Skip to content

Commit 963006d

Browse files
authored
Merge pull request #156 from OpenSourceOrg/add/new-page-template-noheader-wide-main
[Main] Add/new page template noheader wide main
2 parents 952ad44 + 75f37a5 commit 963006d

File tree

6 files changed

+54
-2
lines changed

6 files changed

+54
-2
lines changed

themes/osi/assets/css/editor-style.css

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/assets/css/editor-style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/assets/scss/_5_objects.layout.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@
5757
}
5858
}
5959

60+
.page-template-template-no-header-wide .content.has_no_sidebar, .page-template-template-no-header-wide footer{
61+
.content--page article:not(.archive), .comments, .archive-press-mentions {
62+
max-width: inherit !important;
63+
margin-left: auto !important;
64+
margin-right: auto !important;
65+
}
66+
}
67+
6068
.content.has_no_sidebar, footer {
6169
.alignwide {
6270
// @extend %alignwide;

themes/osi/style.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/osi/style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
/**
3+
* Template Name: No Page Header - Wide
4+
*
5+
* @link https://codex.wordpress.org/Template_Hierarchy
6+
*
7+
* @package osi
8+
*/
9+
10+
get_header(); ?>
11+
12+
<section class="content <?php echo ( osi_display_sidebar() ? 'has_sidebar' : 'has_no_sidebar' ); ?>" id="content">
13+
14+
<main class="content--body <?php echo esc_attr( osi_main_class() ); ?>" role="main">
15+
16+
<section class="content--page" id="content-page">
17+
<?php get_template_part( 'template-parts/breadcrumbs' ); ?>
18+
19+
<?php
20+
while ( have_posts() ) :
21+
the_post();
22+
get_template_part( 'template-parts/content', 'page-no-header' );
23+
endwhile; // End of the loop.
24+
?>
25+
26+
</section>
27+
28+
</main><!-- #primary -->
29+
30+
</section>
31+
32+
<?php
33+
get_footer();

0 commit comments

Comments
 (0)