summaryrefslogtreecommitdiff
path: root/page-templates/empty.php
diff options
context:
space:
mode:
authorMax2018-10-15 23:46:42 +0200
committerMax2018-10-15 23:46:42 +0200
commit00c9709fd9763542e848f6278db8ba26af5c9886 (patch)
tree92cb1c1ee4c467118e1e5a4c7e233d3feac6efa8 /page-templates/empty.php
downloadfuselkoenig_de-00c9709fd9763542e848f6278db8ba26af5c9886.tar.gz
Initial commit.
Diffstat (limited to 'page-templates/empty.php')
-rw-r--r--page-templates/empty.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/page-templates/empty.php b/page-templates/empty.php
new file mode 100644
index 0000000..2c11ff1
--- /dev/null
+++ b/page-templates/empty.php
@@ -0,0 +1,21 @@
+<?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
+ */
+
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly.
+}
+
+get_header();
+
+while ( have_posts() ) : the_post();
+ get_template_part( 'loop-templates/content', 'empty' );
+endwhile;
+
+get_footer();