Yellow Swordfish said
…the first thing to try would be to wrap that enqueue line of code in this:
if ( sp_is_forumpage() == false ) {
…. do the enqueue here
}
Thanks for that, I actually went the dequeue route. I added the following to the theme functions:
/* *** Dequeue modernizr on Forums. *** */
function woomod_dequeue() {
if ( is_page( 'forums' ) ) {
wp_dequeue_script( 'modernizr' );
}
}
add_action( 'wp_print_scripts', 'woomod_dequeue', 100 );
/* *** END Dequeue modernizr *** */
Any concerns with this?
So far, it seems to do the trick on our dev site. Modernizr loads on other pages but not on forums/ or PM inbox, Profile, etc. And, the toolset slides up within view, as it should!
It’s a Band-Aid, but I guess those are sometimes required when not everybody plays nice together in the sandbox…just need to ensure nothing else has imploded with this theme hack before updating our live site, and putting this topic to rest.