Created
June 19, 2018 15:41
-
-
Save KaineLabs/3ccf39949f05e31c1b2f3c94dc8ecc37 to your computer and use it in GitHub Desktop.
MyArcade Theme Fix
This file contains 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 | |
/** | |
* Remove Theme Default Buddypress Files | |
*/ | |
function youzer_remove_default_bp_files() { | |
if ( is_buddypress() ) { | |
wp_dequeue_style( 'mt-BuddyPressIntegration' ); | |
wp_dequeue_script( 'myarcadetheme-general' ); | |
} | |
} | |
add_action( 'wp_enqueue_scripts' , 'youzer_remove_default_bp_files', 999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment