It’s no problem at all I just appreciate you helping me no matter how crazy my request is. I found some video tutorials about php and php with WordPress over at Envato. I found some code to dequeue the style using a handle. I have tried googling around but I have not been able to find anything about how to dequeue just a single css file. Are there any other files besides the css that the handles apply to when dequeuing a style?
- This reply was modified 3 years ago by
David.
- This reply was modified 3 years ago by
Hi David,
You can take a look at the wp_enqueue_stylle and wp_enqueue_Script in the bp-nouveau/buddypress-functions.php to get the idea about the used handles.
For css, these 2 are used currently.
bp-nouveau bp-nouveau-messages-at
Regards
BrajeshOk I did get the css file to dequeue and get the one I wanted to rename loaded but for some reason it still looks as if the file did not load. Would you mind telling me if this code looks alright to you?
//* 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 add_action( 'wp_enqueue_scripts', 'enqueue_profile_style_sheet' ); function enqueue_profile_style_sheet() { wp_register_style( 'profile', get_stylesheet_directory_uri() . '/css/profile.css', false, '1.0.0' ); wp_enqueue_style( 'profile' ); }
- This reply was modified 3 years ago by
David.
- This reply was modified 3 years ago by
You must be logged in to reply to this topic.