Remove Wplms theme CSS in Child One theme

Home Forums Legacy Support Support queries Child Themes Remove Wplms theme CSS in Child One theme

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11064
    David
    Participant
    I'm using WPLMS Child One like my theme. I want remove WPLMS CSS parent theme from being loading together with WPLMS Child One. I wrote a complete CSS to WPLMS Child One and I don't need WPLMS parent theme CSS anymore. How I can stop that?   The loading time increased because of that.   I need the same thing with BuddyPress CSS theme from WPLM parent theme. I wrote another one and the buddypress parent theme still loading together.   Right now I have:   WPLMS parent CSS - I Need remove this one WPLMS Child One theme CSS   Both are loading together.   Buddypress parent css theme - I Need remove this one Buddypress child css theme   Both are loading together.  
    #11436
    MrVibe
    Keymaster
    Try adding this code in child theme functions.php file :  
    add_action('wp_enqueue_scripts','wplms_remove_main_stylesheet',10);
    
    function wplms_remove_main_stylesheet(){
    wp_dequeue_style('theme-css');
    }
     
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Remove Wplms theme CSS in Child One theme’ is closed to new replies.