fixing the output of the archive and category post pages for testimonials
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 17 Aug 2018 12:54:49 +0000 (08:54 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 17 Aug 2018 12:54:49 +0000 (08:54 -0400)
archive.php
content-page.php
content-single.php
content.php
footer.php
header.php
js/custom.js
parts/glm-client-info.php
style.css

index f1f5be2..b56e12c 100644 (file)
@@ -14,13 +14,6 @@ get_header(); ?>
 
                <?php if ( have_posts() ) : ?>
 
-                       <header class="page-header">
-                               <?php
-                                       the_archive_title( '<h1 class="page-title">', '</h1>' );
-                                       the_archive_description( '<div class="taxonomy-description">', '</div>' );
-                               ?>
-                       </header><!-- .page-header -->
-
                        <?php /* Start the Loop */ ?>
                        <?php while ( have_posts() ) : the_post(); ?>
 
index 5ead1ec..062dc52 100644 (file)
@@ -7,9 +7,7 @@
 ?>
 
 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
-       <header class="entry-header">
-               <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
-       </header><!-- .entry-header -->
+
 
        <div class="entry-content">
                <?php the_content(); ?>
@@ -20,7 +18,5 @@
                        ) );
                ?>
        </div><!-- .entry-content -->
-       <footer class="entry-footer">
-               <?php edit_post_link( '<i class="fa fa-pencil-square-o"></i>'. __( 'Edit', 'accesspress-parallax' ), '<span class="edit-link">', '</span>' ); ?>
-       </footer><!-- .entry-footer -->
+
 </article><!-- #post-## -->
\ No newline at end of file
index 3122aec..2ca25c9 100644 (file)
@@ -53,5 +53,4 @@ $post_date_class = ((!empty($post_date) && $post_date == ' ') || has_post_thumbn
                ?>
        </footer><!-- .entry-footer -->
 <?php endif; ?>
-<?php edit_post_link( '<i class="fa fa-pencil-square-o"></i>'. __( 'Edit', 'accesspress-parallax' ), '<span class="edit-link">', '</span>' ); ?>
 </article><!-- #post-## -->
index 5e60017..9fa0bb9 100644 (file)
@@ -38,32 +38,4 @@ $post_date_class = ($post_date != 1 || has_post_thumbnail()) ? " no-date" : "";
                ?>
        </div><!-- .entry-content -->
 
-       <footer class="entry-footer">
-               <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
-                       <?php
-                               /* translators: used between list items, there is a space after the comma */
-                               $categories_list = get_the_category_list( ', ' );
-                               if ( $categories_list && accesspress_parallax_categorized_blog() ) :
-                       ?>
-                               <span class="cat-links">
-                                       <?php printf( __( '<i class="fa fa-folder-open"></i>Posted in %1$s', 'accesspress-parallax' ), $categories_list ); ?>
-                               </span>
-                       <?php endif; // End if categories ?>
-
-                       <?php
-                               /* translators: used between list items, there is a space after the comma */
-                               $tags_list = get_the_tag_list( '', __( ', ', 'accesspress-parallax' ) );
-                               if ( $tags_list ) :
-                       ?>
-                               <span class="tags-links">
-                                       <?php printf( __( '<i class="fa fa-tags"></i>Tagged %1$s', 'accesspress-parallax' ), $tags_list ); ?>
-                               </span>
-                       <?php endif; // End if $tags_list ?>
-               <?php endif; // End if 'post' == get_post_type() ?>
-
-               <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
-                       <span class="comments-link"><?php comments_popup_link( __( '<i class="fa fa-comments"></i>Leave a comment', 'accesspress-parallax' ), __( '<i class="fa fa-comments"></i>1 Comment', 'accesspress-parallax' ), __( '<i class="fa fa-comments"></i>% Comments', 'accesspress-parallax' ) ); ?></span>
-               <?php endif; ?>
-       </footer><!-- .entry-footer -->
-       <?php edit_post_link( '<i class="fa fa-pencil-square-o"></i>'. __( 'Edit', 'accesspress-parallax' ), '<span class="edit-link">', '</span>' ); ?>
 </article><!-- #post-## -->
\ No newline at end of file
index d3f35a8..6d1c6b8 100644 (file)
                     <?php get_template_part('parts/glm-client-info'); ?>
            
                 </div><!-- .copy-right -->
-     
-                               
-            </div>
-            <div id="hours">
-                <span>Monday–Friday 8 am– 4:30 pm</span> &nbsp;&#x2022;&nbsp;
-                <span>Saturday and Sunday by appointment only </span>
-            </div>
-            <div id="footer-social">
-                <a class="social-icon fb" href="https://www.facebook.com/Northland-Self-Storage-779394032191994/"></a>
             </div>
         </div>
         
index 6921cda..4c1e4f9 100644 (file)
     <header id="masthead" class="<?php echo of_get_option('header_layout'); ?>">
                <div class="mid-content clearfix">
             <div class="social-header">
-                <span>(231) 348-5680 </span>
+                <span class="header-links-container">
+                    <span class="phone-number">(231) 348-5680 </span>
+                    <a href="<?php echo get_permalink(21); ?>">Contact Us</a>
+                </span>
                 <a class="social-icon fb" href="https://www.facebook.com/Northland-Self-Storage-779394032191994/"></a>
             </div>
             <div class="flex-box">
@@ -46,7 +49,7 @@
                         <img src="<?php header_image(); ?>" alt="<?php bloginfo( 'name' ); ?>">
                     </a>
                     <div id="header-tagline">
-                        Storage for your Lifestyle
+                    Petoskey - Bay Harbor - Harbor Springs
                     </div>
            
                 <?php else:?>
index a6e7f53..a04d00e 100644 (file)
@@ -179,5 +179,5 @@ jQuery(document).ready(function($){
     // $('.menu').children('li').children("a").on("click", function(e){
     //     e.preventDefault()
     // })
-
 });
\ No newline at end of file
index fe350b3..a1dc6ea 100644 (file)
@@ -3,6 +3,7 @@
         <?php if (glm_get_clientinfo_option('businessName')) :?>
             <div>
                 <span class="businessName"><?php echo glm_get_clientinfo_option('businessName');?></span> 
+                
             </div>
         <?php endif;?>
             <div id="footer-phone">
                     <span class="phone"><?php echo glm_get_clientinfo_option('phone');?></span> <span class="pipe"> &nbsp;</span>
                 <?php endif;?>
             </div>
+            <div id="hours">
+                    <span>Monday–Friday 8 am– 4:30 pm</span> &nbsp;&#x2022;&nbsp;
+                    <span>Saturday and Sunday by appointment only </span>
+                </div>
         <div class="location_1 address-container medium-6 columns">
-        
+            <?php if (glm_get_clientinfo_option('tollfree')) :?>
+                <span><b><?php echo glm_get_clientinfo_option('tollfree');?></b></span><br>
+            <?php endif;?>
             <?php if (glm_get_clientinfo_option('address')):?>
                 <span class="address_1_street"><?php echo glm_get_clientinfo_option('address');?></span><br>
                 <span class="pipe"> &nbsp;</span>
             <?php if (glm_get_clientinfo_option('fax')) :?>
                 <span><?php echo glm_get_clientinfo_option('fax');?></span> <span class="pipe"> &nbsp;</span>
             <?php endif;?>
-            <?php if (glm_get_clientinfo_option('tollfree')) :?>
-                <span><?php echo glm_get_clientinfo_option('tollfree');?></span>
-            <?php endif;?>
+     
             
         </div>
 
         <div class="location_2 address-container medium-6 columns">
-
+        <?php if (glm_get_clientinfo_option('tollfree2')) :?>
+                <span><b><?php echo glm_get_clientinfo_option('tollfree2');?></b></span><br>
+            <?php endif;?>
             <?php if (glm_get_clientinfo_option('address')):?>
                 <span class="address_1_street"><?php echo glm_get_clientinfo_option('address2');?></span><br>
                 <span class="pipe"> &nbsp;</span>
                 <span class="address_1_region"><?php echo glm_get_clientinfo_option('city2');?>, <?php echo glm_get_clientinfo_option('state2');?> <span class="pipe"> </span> <?php echo glm_get_clientinfo_option('zip');?></span> <br>
             <?php endif;?>
-
-     
             <?php if (glm_get_clientinfo_option('fax2')) :?>
                 <span><?php echo glm_get_clientinfo_option('fax2');?></span> <span class="pipe"> &nbsp;</span>
             <?php endif;?>
-            <?php if (glm_get_clientinfo_option('tollfree2')) :?>
-                <span><?php echo glm_get_clientinfo_option('tollfree2');?></span>
-            <?php endif;?>
+            
 
         </div>
      
index e681f3d..5a2e471 100644 (file)
--- a/style.css
+++ b/style.css
@@ -196,11 +196,14 @@ h6 {
 }
 
 h1 {
-    font-size: 24px;
+    font-size: 26px;
+    color: #004037;
+    text-transform: uppercase;
 }
 
 h2 {
-    font-size: 22px;
+    font-size: 21px;
+    color: rgb(151, 114, 69);
 }
 
 h3 {
@@ -584,8 +587,8 @@ Widgets
 
 #secondary .widget {
     background: #FFF;
-    padding: 30px;
-    margin-bottom: 40px;
+    padding: 20px 30px 0px 30px;
+    margin-bottom: 0px;
 }
 
 /*--------------------------------------------------------------
@@ -692,9 +695,7 @@ Content
 #content > .mid-content {
     /* margin-top: 50px; */
 }
-.archive #content > .mid-content{
-    margin-top: 200px;
-}
+
 #primary {
     width: 69%;
     float: left;
@@ -774,9 +775,7 @@ Posts and pages
     margin-bottom: 0;
 }
 
-.archive .hentry {
-    margin-bottom: 60px;
-}
+
 
 .byline,
 .updated {
@@ -806,7 +805,30 @@ Posts and pages
     clear: both;
     margin: 0 0 20px;
 }
-
+.archive #content > .mid-content, .single #content > .mid-content{
+    margin-top: 200px;
+}
+.post-type-archive-testimonial .entry-content{
+    padding: 10px 20px;
+    background-color: rgba(33,33,33,.1);
+    margin: 0;
+}
+.post-type-archive-testimonial .hentry {
+    margin-bottom: 0px;
+    padding-bottom: 5px;
+    padding-left: 0px;
+    /* border-bottom: 1px solid #AE8B5F; */
+}
+article.testimonial .entry-header .entry-title{
+    margin-left: 0px;
+    margin-bottom: 0px;
+    text-align: center;
+    background-color: #004037;
+    padding: 5px 0;
+}
+article.testimonial .entry-header .entry-title a{
+    color: white;
+}
 .entry-header h1.entry-title {
     margin-left: 80px;
 }
@@ -1323,9 +1345,23 @@ body.parallax-on .wpcf7-not-valid-tip {
     z-index: 1;
     padding: 10px;
     float: left;
-    width: 26%;
+    width: 33%;
     /* max-width: 180px; */
 }
+header#masthead div.social-header span.header-links-container .phone-number{
+    margin-right: 10px;
+}
+.header-links-container a{
+    color: #004037;
+}
+.header-links-container a:hover{
+    color: #C14D07;
+}
+@media (min-width: 1000px){
+    #site-logo a img{
+        max-width: 295px;
+    }
+}
 
 .logo-top #site-logo {
     float: none;
@@ -2223,7 +2259,10 @@ Google Map Section
 .googlemap-toggle.active:after {
     content: "\f107";
 }
-
+.testimonial_rotator_quote{
+    max-width: 500px;
+    margin: 0 auto;
+}
 #ap-map-canvas {
     height: 450px !important;
     width: 100%;
@@ -2463,7 +2502,8 @@ Social
     position: relative;
     z-index: 99;
     font-size: 18px;
-    margin-top: 20px;
+    margin-top: 5px;
+    margin-bottom: 15px;
 }
 #hours span{
     font-size: 17px !important;
@@ -2684,7 +2724,7 @@ Responsive grid for pages
 
 
 #footer-phone{
-    margin-bottom: 20px;
+    margin-bottom: 5px;
 }
 
 .portfolio-list{
@@ -2694,6 +2734,9 @@ Responsive grid for pages
     font-size: 40px;
     text-align: center;
 }
+.parallax-section:nth-child(3) h2 span{
+    color: white;
+}
 .parallax-section:nth-child(3) h3{
     font-size: 26px;
     /* text-align: center; */
@@ -2782,4 +2825,13 @@ video {
     #section-31 {
         background-attachment:initial !important;
     }
+}
+html body header#masthead #site-navigation ul>li.menu-item>a{
+    font-size: 16px;
+}
+html body.home #content .parallax-section:nth-child(4) .mid-content>h2 {
+    display: block;
+}
+html body.home #content .parallax-section:nth-child(3), html body.home #content .parallax-section:nth-child(2){
+    border-top: 4px solid #AE8B5F;
 }
\ No newline at end of file