Checkerboard Featured Posts Layout like Genesis Atmosphere Pro Theme

Here is a quick tutorial on how to create a blog post layout that has a checkerboard style layout which uses a featured image on one side of the the post and the post headline and content on the other, the image alternates position on each post.

genesis-checkerboard-layout

This is similar to the Atmosphere Pro theme layout which does the layout with three pages using the Genesis Featured Page widget, this tutorial uses the Genesis Featured Post Widget.

The images are best suited cropped in a square ratio. The images used in this tutorial are initially uploaded at 64opx wide

Adding in via a Widget

Using the Genesis Featured Posts Widget you can add the posts in to an existing widget, you can set the amount of posts to display as much as you like.

genesis-checkerboard-layout-widget

So here, I have selected my category ‘Check’ for my posts and am selecting 6, the featured image is set to display initially set to Left for the alignment, but this will be overridden in the CSS, the post title shows and has a content limit of 300. It’s important to keep the content limit to a reasonable amount as otherwise the layout will struggle at smaller sizes.

The CSS

/* # Checker Content
---------------------------------------------------------------------------------------------------- */
.home-top {
margin: 40px auto;
}
.home-top .featured-content .entry {
padding: 0;
margin: 0 0 30px;
background: #fff;
overflow: hidden;
}
.home-top .featured-content .entry-header,
.home-top .featured-content .entry-content {
padding-left: 7.5%;
padding-right: 7.5%;
float: none;
margin-bottom: 40px;
}
.home-top .featured-content .entry-title {
display: inline-block;
}
.home-top .featured-content .entry-header {
padding-top: 6%;
clear: both;
}
.home-top .featured-content .entry-content {
padding-bottom: 1%;
}
.home-top .featured-content .entry-image {
max-width: none;
width: 100%;
float: none;
height: auto;
max-height: 360px;
}
.home-top .featured-content .entry > a {
margin: 0;
}
@media only screen and (min-width: 500px) {
.home-top .featured-content .entry-image {
float: left;
height: 600px;
max-height: none;
width: auto;
}
}
@media only screen and (min-width: 650px) {
.home-top .featured-content .entry {
margin: 0;
}
.home-top .featured-content .entry > a {
max-width: 50%;
}
.home-top .featured-content .entry-header,
.home-top .featured-content .entry-content {
width: 50%;
float: left;
margin-bottom: 0;
clear: none;
}
.home-top .featured-content .entry-image {
float: left;
height: 600px;
max-height: none;
}
.home-top .featured-content .entry:nth-of-type(even) > a {
float: right;
}
.home-top .featured-content .entry:nth-of-type(odd) > a {
float: left;
}
.home-top .featured-content .entry:nth-of-type(odd) > a .entry-image {
float: right;
}
}
view raw checkerboard.css hosted with ❤ by GitHub

The key thing in the CSS is to use your widget name CSS class (mine is .home-top), I am also using mobile first media queries. The image is contained in a link at 50% and the header and content are also set to 50%, their float positions are set to left with every 2nd linked image floating right.

The image height has a fixed px setting to retain the shape but its width will change according to what width is available, when viewed at a mobile style size I think it’s better to reduce the height, initially I set it at 600px but change it to 360px at a smaller px size.

Example site

Leave a Comment





%d bloggers like this: