adding margin to the top of the blog template pages
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 16 Aug 2018 17:57:36 +0000 (13:57 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 16 Aug 2018 17:57:36 +0000 (13:57 -0400)
archive-testimonial.php [new file with mode: 0644]
parts/testimonial.php [new file with mode: 0644]
single-testimonial.php [new file with mode: 0644]
style.css

diff --git a/archive-testimonial.php b/archive-testimonial.php
new file mode 100644 (file)
index 0000000..10e80e5
--- /dev/null
@@ -0,0 +1,25 @@
+<?php get_header(); ?>
+    <div class="main">
+        <?php get_template_part('parts/testimonial');?>
+        <div id="content-wrapper">
+             <div class="row">
+             </div>
+             <div class="row">
+                <div id="main-content" class="small-11 small-centered columns">
+                    <?php $pageData = get_post(27);?>
+                    <?php echo apply_filters('the_content', $pageData->post_content);?>
+                    <?php if(have_posts()) : while(have_posts()): the_post();?>
+                    <h2><?php the_title();?></h2>
+                    <?php the_content();?>
+                    <hr>
+                    <?php endwhile;?>
+                    <div class="navigation">
+                        <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
+                    </div><!-- /.navigation -->
+                    <?php else:?>
+                    <p><?php _e('Sorry, no posts yet');?></p>
+                    <?php endif;?>
+                </div>
+            </div>
+        </div>
+<?php get_footer(); ?>
\ No newline at end of file
diff --git a/parts/testimonial.php b/parts/testimonial.php
new file mode 100644 (file)
index 0000000..99a178f
--- /dev/null
@@ -0,0 +1,7 @@
+<div id="testimonials" class="row">
+    <div class="small-12 columns overlay">
+        <?php if (is_active_sidebar('sidebar-f')) :?>
+            <?php dynamic_sidebar('sidebar-f');?>
+        <?php endif;?>
+    </div>
+</div>
diff --git a/single-testimonial.php b/single-testimonial.php
new file mode 100644 (file)
index 0000000..69a5dad
--- /dev/null
@@ -0,0 +1,18 @@
+<?php get_header(); ?>
+    <div class="main">
+        <?php get_template_part('parts/testimonial');?>
+        <div id="content-wrapper">
+             <div class="row">
+             </div>
+             <div class="row">
+                <div id="main-content" class="small-11 small-centered columns">
+                    <?php if(have_posts()) : while(have_posts()): the_post();?>
+                    <h2><?php the_title();?></h2>
+                    <?php the_content();?>
+                    <?php endwhile; else:?>
+                    <p><?php _e('Sorry, no posts yet');?></p>
+                    <?php endif;?>
+                </div>
+            </div>
+        </div>
+<?php get_footer(); ?>
\ No newline at end of file
index edaa8d1..e681f3d 100644 (file)
--- a/style.css
+++ b/style.css
@@ -692,7 +692,9 @@ Content
 #content > .mid-content {
     /* margin-top: 50px; */
 }
-
+.archive #content > .mid-content{
+    margin-top: 200px;
+}
 #primary {
     width: 69%;
     float: left;