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

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

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

The code generates a custom class you can use to style the first post in the home page loop differently to the rest of your site.

This code needs to be pasted at the end of your child themes functions file.

Register for full access

Related Tutorials

  • Add Class To 1st Post On First Archive Page
  • Feature Your 1st Post With a Different Style On Your Blog Page
  • Customize The First Featured Image In Genesis Home Page Loop

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags