Skip to:
Content
Pages
Categories
Search
Top
Bottom

I would like to block to load theme’s custom css file


  • stokim2012
    Participant

    @stokim2012

    Hi!
    I would like to block loading buddypress custom css file in theme’s buddypress folder on every pages. I used this code in functions.php
    function conditional_buddypress_styles_scripts() {
    if ( function_exists( ‘is_buddypress’ ) ) {
    if ( ! is_buddypress() ) {
    wp_dequeue_style( ‘buddypress’ );}}

    However, theme folder/buddypress/buddypress.css file is still on load. How can I dequeue custom buddypress style sheet?
    I need your help. Thanks in advance.

  • You must be logged in to reply to this topic.
Skip to toolbar