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:
parent
1a761eff72
commit
f9a5eb626d
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
/**
|
||||
* The template used for displaying page content in page.php
|
||||
*
|
||||
* @package understrap
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php the_content(); ?>
|
||||
|
|
@ -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(); ?>
|
|
@ -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">
|
||||
|
||||
|
|
Reference in New Issue