From: Steve Sutton Date: Wed, 19 Nov 2014 15:36:14 +0000 (-0500) Subject: Update style for the aligncenter image and output post for the blocks X-Git-Tag: v1.0.0~71 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=5b54964b0b8d75caa507c50bafba89e4981df1ca;p=WP-Themes%2FPrestonFeather.git Update style for the aligncenter image and output post for the blocks Block areas will have three of the posh categories Our Latest Design New at Preston Feather Seasonal Tips --- diff --git a/css/styles.css b/css/styles.css index cff3980..ff45175 100644 --- a/css/styles.css +++ b/css/styles.css @@ -481,8 +481,11 @@ top-bar-section .has-dropdown .dropdown li.has-dropdown > a:after { /* Images */ -img.centered { +img.aligncenter { display: block; + clear: both; + float:none; + padding:0; margin-left: auto; margin-right: auto; } diff --git a/front-page.php b/front-page.php index 54165bd..4d01503 100644 --- a/front-page.php +++ b/front-page.php @@ -25,30 +25,33 @@
__('Block One', 'text-domain'), - 'type' => 'editor', - 'apply_filters' => true - )); - ?> + $args = array( 'numberposts' => 1, 'category_name' => 'Our Latest Design' ); + $lastposts = get_posts( $args ); + foreach($lastposts as $post) : setup_postdata($post); ?> + ID, array(298, 228), array('class' => 'aligncenter')); ?> +

Our Latest Design

+ +
__('Block Two', 'text-domain'), - 'type' => 'editor', - 'apply_filters' => true - )); - ?> + $args = array( 'numberposts' => 1, 'category_name' => 'New at Preston Feather' ); + $lastposts = get_posts( $args ); + foreach($lastposts as $post) : setup_postdata($post); ?> + ID, array(298, 228), array('class' => 'aligncenter')); ?> +

New at Preston Feather

+ +
__('Block Three', 'text-domain'), - 'type' => 'editor', - 'apply_filters' => true - )); - ?> + $args = array( 'numberposts' => 1, 'category_name' => 'Seasonal Tips' ); + $lastposts = get_posts( $args ); + foreach($lastposts as $post) : setup_postdata($post); ?> + ID, array(298, 228), array('class' => 'aligncenter')); ?> +

Seasonal Tips

+ +
@@ -66,7 +69,7 @@ data-cycle-log="false" > 4 ); +$args = array( 'numberposts' => 4, 'category_name' => 'Preston Feather' ); $lastposts = get_posts( $args ); foreach($lastposts as $post) : setup_postdata($post); ?>