Please go easy on me as I have no experience here.
I want to replace BuddyPress’s style with a custom named one and have been told that the filename is hardcoded. I managed to piece some code together and get the file to load but for some reason, the layout won’t change. Here is the code I am using to enqueue the file please let me know if its wrong in any way.
//* Remove bp-nouveau style
add_action( 'wp_enqueue_scripts', 'remove_bp_nouveau_styles', 11 );
function remove_bp_nouveau_styles() {
wp_dequeue_style( 'bp-nouveau');
}
//* Register and Enqueue Stylesheet
function community_profile() {
wp_enqueue_style( 'community-profile', get_stylesheet_directory_uri() . '/css/profile.css', false, null, 'all' );
}
add_action( 'wp_enqueue_scripts', 'community_profile' );