Created
August 28, 2017 12:29
-
-
Save topleague/e6a7a2e4b1158cc9aeffa089b9870008 to your computer and use it in GitHub Desktop.
Add Class Attributes to Front Page in Genesis Sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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