Last active
February 15, 2016 18:49
-
-
Save bhubbard/3ba8f9cf5bb1b43b5773 to your computer and use it in GitHub Desktop.
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
<?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'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment