Lego2012
12/13/2016 - 6:15 PM

Add an ID to .site-inner

Add an ID to .site-inner

<?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;

}