Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jamiemitchell/f6b1a091e4b4f128fbce3ee45359e359 to your computer and use it in GitHub Desktop.
Save jamiemitchell/f6b1a091e4b4f128fbce3ee45359e359 to your computer and use it in GitHub Desktop.
Add an ID to .site-inner #wordpress #genesis
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Add an ID to .site-inner
add_filter( 'genesis_attr_site-inner', 'custom_attributes_content' );
function custom_attributes_content( $attributes ) {
if ( is_singular('post' ) ) {
$attributes['id'] = 'site-inner';
}
return $attributes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment