Allow frontpage content to be displayed
authorLaury GvR <laury@gaslightmedia.com>
Fri, 19 May 2017 13:17:27 +0000 (09:17 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 19 May 2017 13:17:27 +0000 (09:17 -0400)
style.css
template-parts/page/content-front-page.php

index b8f7d43..49ab024 100755 (executable)
--- a/style.css
+++ b/style.css
@@ -1615,8 +1615,12 @@ a:hover .nav-title,
     letter-spacing: 0;
     text-align: center;
 }
+#frontpage-content .wrap {
+    padding-bottom: 40px;
+}
 #frontpage-sub-title {
     text-align: center;
+    margin-bottom: 20px;
 }
 #frontpage-sub-title-start {
     color: #304f88;
index 53cb11a..8a4e1c1 100755 (executable)
 
        <?php endif; ?>
 
-       <div class="panel-content">
-            
+       <div id="frontpage-content" class="panel-content">
+
                <div class="wrap">
-                    
+
                         <div id="frontpage-sub-title">
                             <span id="frontpage-sub-title-start">we do:</span><span id="frontpage-sub-title-end"> Optics. Lighting. Design.</span>
                         </div>
-                    
+
                        <div class="entry-content">
-                               <?php
-                                       /* translators: %s: Name of current post */
-                                       the_content( sprintf(
-                                               __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
-                                               get_the_title()
-                                       ) );
-                               ?>
+                            <?php
+                                $frontpage = get_post( get_option( 'page_on_front' ) );
+                            ?>
+                            <?php echo apply_filters( 'the_content', get_post_field('post_content', $frontpage->ID) ); ?>
+
                        </div><!-- .entry-content -->
 
                </div><!-- .wrap -->