Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save topleague/e6a7a2e4b1158cc9aeffa089b9870008 to your computer and use it in GitHub Desktop.
Save topleague/e6a7a2e4b1158cc9aeffa089b9870008 to your computer and use it in GitHub Desktop.
Add Class Attributes to Front Page in Genesis Sample
// Add attributes for site-inner element, since we're removing 'content'.
function be_site_inner_attr( $attributes ) {
// Add a class of 'full' for styling this .site-inner differently
$attributes['class'] .= ' full';
// Add the attributes from .entry, since this replaces the main entry
$attributes = wp_parse_args( $attributes, genesis_attributes_entry( array() ) );
return $attributes;
}
add_filter( 'genesis_attr_site-inner', 'be_site_inner_attr' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment