Adding an empty page template

Add a empty page template with just a header and footer section and a
„naked“ content section in between. The content comes without any
markup so you can add your own markup to the page. Good for landing
pages or other pages which needs to use another markup besides the
default stuff.
This commit is contained in:
Holger Könemann 2016-06-18 13:41:59 +02:00
parent 1a761eff72
commit f9a5eb626d
3 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,10 @@
<?php
/**
* The template used for displaying page content in page.php
*
* @package understrap
*/
?>
<?php the_content(); ?>

18
page-templates/empty.php Normal file
View File

@ -0,0 +1,18 @@
<?php
/**
* Template Name: Empty Page Template
*
* Template for displaying a page just with the header and footer area and a "naked" content area in between. Good for landingpages and other types of pages where you want to add a lot of custom markup
*
* @package understrap
*/
get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'loop-templates/content', 'empty' ); ?>
<?php endwhile; // end of the loop. ?>
<?php get_footer(); ?>

View File

@ -9,7 +9,7 @@
get_header(); ?>
<div class="wrapper" id="page-wrapper">
<div class="wrapper" id="full-width-page-wrapper">
<div id="content" class="container">