From 5b54964b0b8d75caa507c50bafba89e4981df1ca Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 19 Nov 2014 10:36:14 -0500 Subject: [PATCH] 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 --- css/styles.css | 5 ++++- front-page.php | 41 ++++++++++++++++++++++------------------- 2 files changed, 26 insertions(+), 20 deletions(-) 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); ?>
-- 2.17.1