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
Added new-class
to default entry
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:
Leave a Reply