BuddyDev

Search

Question to override CSS from Buddypress Nouveau

  • Participant
    Level: Enlightened
    Posts: 44
    Alex on #53076

    Hi,
    I have a follow up question to this topic:
    https://buddydev.com/support/forums/topic/dequeue-bp-nouveau-css/

    I wanna overwrite some CSS at the buddypress profile page. BP loads the styles via buddypress.min.css as Brajesh wrotes at the other topic.
    As the min-files are difficult to edit, how can I make buddypress load the “normal” buddypress.css file?

    I copied buddypress.css from nouveau folder to my theme’s folder budddypress/css/buddypress.css.

    I know I am able to overwrite styles within the child theme’s style.css and an important statement. But I would prefer to modify the whole buddypress.css file.
    If there is no elegant way to do that, would it be an approach to minify buddypress.css and copy that minfied file to the theme’s folder in the above mentioned directory?

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #53080

    Hello Alex,

    Thank you for posting. Please use the following code in your “wp-config.php” file:

    
    define( 'SCRIPT_DEBUG', true );
    
    Just before this.
    /* That's all, stop editing! Happy publishing. */
    
    

    It will enable script debugging mode and then BuddyPress will load un-minified assets files.

    Note: If SCRIPT_DEBUG is enabled it will look for “buddypress.css” file else it will look “buddypress.min.css” file

    Regards
    Ravi

You must be logged in to reply to this topic.

This topic is: not resolved