Title: Adding a filter
Last modified: April 20, 2019

---

# Adding a filter

 *  Resolved [Paul Skip Brown](https://wordpress.org/support/users/paul-skip-brown/)
 * (@paul-skip-brown)
 * [7 years ago](https://wordpress.org/support/topic/adding-a-filter-2/)
 * Hi, I am really keen to style this myself and have seen the ability to turn off
   the plugins default css.
 *     ```
       // Load CSS.
       		if ( apply_filters( 'shared_counts_load_css', true ) ) {
       			wp_enqueue_style( 'shared-counts' );
       		}
       ```
   
 * I realise this will be a really basic question but I’m struggling to understand
   what to add presumably to functions.php to switch from true to false? Are you
   able to assist?
 * Many thanks.

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

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [7 years ago](https://wordpress.org/support/topic/adding-a-filter-2/#post-11449621)
 * Thanks for the message.
 * Here’s a quick tutorial that describes how to disable the CSS using that filter:
   [https://sharedcountsplugin.com/2019/04/20/disable-the-plugins-css-and-javascript/](https://sharedcountsplugin.com/2019/04/20/disable-the-plugins-css-and-javascript/)
 *  Thread Starter [Paul Skip Brown](https://wordpress.org/support/users/paul-skip-brown/)
 * (@paul-skip-brown)
 * [7 years ago](https://wordpress.org/support/topic/adding-a-filter-2/#post-11472948)
 * Thank you Bill. Perfect.

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

The topic ‘Adding a filter’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shared-counts_7188b5.svg)
 * [Shared Counts - Social Media Share Buttons](https://wordpress.org/plugins/shared-counts/)
 * [Support Threads](https://wordpress.org/support/plugin/shared-counts/)
 * [Active Topics](https://wordpress.org/support/plugin/shared-counts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shared-counts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shared-counts/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)

 * 2 replies
 * 2 participants
 * Last reply from: [Paul Skip Brown](https://wordpress.org/support/users/paul-skip-brown/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/adding-a-filter-2/#post-11472948)
 * Status: resolved