BuddyDev

Search

[Resolved] rename bp-nouveau folder

  • Participant
    Level: Enlightened
    Posts: 64
    David on #43661

    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 2 years, 2 months ago by David.
  • Participant
    Level: Enlightened
    Posts: 64
    David on #43705

    I found out how to use wp_dequeue but how do I set the identifier for the css file?

  • Keymaster
    (BuddyDev Team)
    Posts: 24250
    Brajesh Singh on #43724

    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
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 64
    David on #43732

    Really appreciate your response. I do know about the handle but I want to change it. I was told I need to dequeue it then enqueue a new handle I guess? Is that how I need to change it or is there a handle in a file I would also need to edit?

  • Participant
    Level: Enlightened
    Posts: 64
    David on #43816

    Hello?

  • Participant
    Level: Enlightened
    Posts: 64
    David on #43828

    Ok 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 2 years, 1 month ago by David.

You must be logged in to reply to this topic.

This topic is: resolved