Created
November 28, 2016 23:36
-
-
Save marisqaporter/46e73c375691f4f720958f9555633821 to your computer and use it in GitHub Desktop.
company standards for the shed builders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$args = array( | |
'post_type' => 'feature', // enter your custom post type | |
); | |
$loop = new WP_Query( $args ); | |
if( $loop->have_posts() ): | |
echo '<div class="blue-row">'; | |
echo '<div class="site-1200">'; | |
echo '<h4 class="center testimonial white">Company Standards</h4>'; | |
echo '<div class="row test-row center-xs top-xs stretch-xs ">'; | |
while( $loop->have_posts() ): $loop->the_post(); global $post; | |
?> | |
<div class="col-xs-12 | |
col-sm-12 | |
col-md-12 | |
col-lg-4"> | |
<div class="box test-box"> | |
<?php the_title( '<h4 class="center white">', '</h4>' ); ?> | |
<div class="standard-image"><?php the_post_thumbnail('medium'); ?></div> | |
<span class="center copy white"><?php the_content(); ?></span> | |
</div> | |
</div> | |
<?php | |
endwhile; | |
echo '</div>'; // end site-1200 | |
echo '</div>'; // end row | |
endif; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* standard row */ | |
.blue-row { | |
background-color:#1A3562; | |
color:#fff; | |
} | |
.blue-row p, p.white, h1.white, h2.white, h3.white, h3.white { | |
color:#fff; | |
padding-top:60px; | |
} | |
.standard-image img { | |
height: 160px; | |
width: auto; | |
padding: 30px 20px; | |
} | |
.standard-image { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment