Skip to content

Commit

Permalink
Merge pull request #23 from OpenSourceOrg/add/dev/19-webinar-template
Browse files Browse the repository at this point in the history
Added "No Header with title" template
  • Loading branch information
bernattorras authored Nov 8, 2023
2 parents 0306496 + 155e593 commit 7e476cd
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions themes/osi/templates/template-no-header-title.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/**
* Template Name: No Header with Title
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package osi
*/

get_header(); ?>

<section class="content <?php echo ( osi_display_sidebar() ? 'has_sidebar' : 'has_no_sidebar' ); ?>" id="content">

<main class="content--body <?php echo esc_attr( osi_main_class() ); ?>" role="main">

<section class="content--page" id="content-page">
<?php get_template_part( 'template-parts/breadcrumbs' ); ?>

<?php
while ( have_posts() ) :
the_post();
the_title( '<h1>', '</h1>' );
get_template_part( 'template-parts/content', 'page-no-header' );

endwhile; // End of the loop.
?>

</section>

</main><!-- #primary -->

</section>

<?php
get_footer();

0 comments on commit 7e476cd

Please sign in to comment.