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

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Add Custom Class To Entry Class In Genesis

Genesis includes a entire file with filter functions for genesis markup. You can view all this code in genesis > lib > functions > markup.php.

Here’s the visual guide showing the HTML 5 markup structure in Genesis.

If you want to add an extra class to the entry class, you’ll need to use one of the filter functions in the markup.php file of genesis.

The working code is included below for logged in members. First, lets take a look at the before and after screenshots showing the default output in the HTML source code first:

Default entry class

default

Added new-class to default entry class

add-class

As simple as that.

You can use the code in this tutorial with any existing genesis classes.

This tutorial is based on this question from a member of the StudioPress community forums:

Apply a filter to alter the markup for genesis_entry

Here’s the code for logged in members:

Register for full access

Genesis Markup

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
 

Loading Comments...
 

You must be logged in to post a comment.