Title: front end css dequeue styles not working
Last modified: August 22, 2016

---

# front end css dequeue styles not working

 *  Resolved [bu11ettrain](https://wordpress.org/support/users/bu11ettrain/)
 * (@bu11ettrain)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/front-end-css-dequeue-styles-not-working/)
 * hi, great plugin
 * In my functions.php i am trying to wp_dequeue_styles with this code:
 *     ```
       function my_scripts() {
       	wp_dequeue_style('the-champ-frontend-css');
       }
       add_action( 'wp_enqueue_scripts', 'my_scripts' );
       ```
   
 * Usually this approach works with other plugins, however its not functioning with
   SuperSocializer, what am I doing wrong?
    Any help would be great. Thanks. I couldnt
   find the answer on the support forum. Best of luck.
 * [https://wordpress.org/plugins/super-socializer/](https://wordpress.org/plugins/super-socializer/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Rajat Varlani](https://wordpress.org/support/users/the_champ/)
 * (@the_champ)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/front-end-css-dequeue-styles-not-working/#post-5588173)
 * Hi,
    Thanks for the appreciation. Try following code:
 *     ```
       function ss_custom_init(){
       	wp_dequeue_style('the-champ-frontend-css');
       }
       function ss_deque_css(){
       	add_action('wp_enqueue_scripts', 'ss_custom_init');
       }
       add_action('init', 'ss_deque_css');
       ```
   
 * You should remove the CSS same way it is loaded, that is by first using `init`
   and then `wp_enqueue_scripts` action.
 *  Thread Starter [bu11ettrain](https://wordpress.org/support/users/bu11ettrain/)
 * (@bu11ettrain)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/front-end-css-dequeue-styles-not-working/#post-5588185)
 * Thank you, that worked perfectly.
 *  Plugin Author [Rajat Varlani](https://wordpress.org/support/users/the_champ/)
 * (@the_champ)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/front-end-css-dequeue-styles-not-working/#post-5588237)
 * Cheers 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘front end css dequeue styles not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/super-socializer_714345.svg)
 * [Social Share, Social Login and Social Comments Plugin - Super Socializer](https://wordpress.org/plugins/super-socializer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/super-socializer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/super-socializer/)
 * [Active Topics](https://wordpress.org/support/plugin/super-socializer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/super-socializer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/super-socializer/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Rajat Varlani](https://wordpress.org/support/users/the_champ/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/front-end-css-dequeue-styles-not-working/#post-5588237)
 * Status: resolved