• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Feature Your 1st Post Full Width With a Different Style On Your Blog Page

This tutorial shows you how to show off the first post in your home pages main loop in a feature box.

The 1st post will display full width covering the content and sidebar.

The 2nd and subsequent posts will display in the standard layout which is generally, content sidebar.

Here’s a very basic example of what the code in this tutorial produces tested on the Genesis Sample child theme:

1st-post

All you need to do is add your own styling to the sample CSS included below.

Code Installation

There’s 2 simple steps:

  1. Add the PHP code to the end of your child themes functions.php file.
  2. Add the sample CSS to the end of your child themes style.css file before the Media Queries.

Register for full access

Related Tutorials

  • Add Custom Body & Post Classes To First Post In Loop On Home Page

Blog Page

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems