bhubbard
11/4/2015 - 11:53 PM

wrapper-classnames.php

<?php

// This breaks Genesis, due to body class hooks (needs if statement)
function idxbroker_wrappers_wpbody_class_names( $classes) {
	if ( 'idx-wrapper' == get_post_type() ) {
    		return array('idxbroker idxbroker-dynamic-wrapper dynamic-wrapper-'.get_the_title().'' );
    	} else {  }
}
add_filter('body_class','idxbroker_wrappers_wpbody_class_names');