Title: disabling styles
Last modified: August 21, 2016

---

# disabling styles

 *  Resolved [johnssd](https://wordpress.org/support/users/johnssd/)
 * (@johnssd)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/disabling-styles/)
 * Thanks so much for this update to a great plugin. However I do want to revert
   back to simpler times on one issue: I would like to disable the styles and let
   my theme widget settings take over. Is it ok to delete the following from the
   plug-in’s php code? It seemed to work, but I don’t know coding that much so I
   wanted to make sure I’m not causing other problems for the plug in. Here are 
   the lines I deleted:
 * /**
    * Register our styles * * [@return](https://wordpress.org/support/users/return/)
   void */ add_action( ‘wp_enqueue_scripts’, ‘category_posts_widget_styles’ );
 * function category_posts_widget_styles() {
    wp_register_style( ‘category-posts’,
   plugins_url( ‘category-posts/cat-posts.css’ ) ); wp_enqueue_style( ‘category-
   posts’ ); }
 * thank you advance.
    JH
 * [https://wordpress.org/plugins/category-posts/](https://wordpress.org/plugins/category-posts/)

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

 *  [bpmildh](https://wordpress.org/support/users/bpmildh/)
 * (@bpmildh)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/disabling-styles/#post-5115707)
 * Did work for me too
    thx 😉
 *  [livinginitaly](https://wordpress.org/support/users/livinginitaly/)
 * (@livinginitaly)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/disabling-styles/#post-5115728)
 * Brilliant – instantly fixed sites for me too!
 *  [Steve](https://wordpress.org/support/users/claude-haukf/)
 * (@claude-haukf)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/disabling-styles/#post-5115732)
 * This worked for me also. Thank you [@johnssd](https://wordpress.org/support/users/johnssd/)!
 *  Plugin Author [Mrinal Roy](https://wordpress.org/support/users/mkrdip/)
 * (@mkrdip)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/disabling-styles/#post-5115736)
 * Hi All,
 * Sorry for the late reply.
 * I had many issues so was busy to dealing them.
 * I’ll add an option in newest version of the plugin to include plugin CSS or not,
   may be a checkbox in widget.
 * BTW, you can submit feature request here in Github by opening an new issue: [https://github.com/mkrdip/category-posts-widget](https://github.com/mkrdip/category-posts-widget)
 * Commits are more than welcome, I’ll add you guys as contributor of the plugin
   who take care of it for future.
 * I’m having hard time managing a full time job + study + WordPress community works.
 *  [paulynn717](https://wordpress.org/support/users/paulynn717/)
 * (@paulynn717)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/disabling-styles/#post-5115760)
 * Hello,
 * I realise this was 2/3 months ago, but I am wondering if someone can answer, 
   from where do these lines get deleted… what file?
 * /**
    * Register our styles * * [@return](https://wordpress.org/support/users/return/)
   void */ add_action( ‘wp_enqueue_scripts’, ‘category_posts_widget_styles’ );
 * function category_posts_widget_styles() {
    wp_register_style( ‘category-posts’,
   plugins_url( ‘category-posts/cat-posts.css’ ) ); wp_enqueue_style( ‘category-
   posts’ ); }
 * Thank you so much!
    Good luck with everything Mrinal!!
 *  [paulynn717](https://wordpress.org/support/users/paulynn717/)
 * (@paulynn717)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/disabling-styles/#post-5115761)
 * Oh duh… I see now in the plugins php…
 *  Plugin Author [Daniel Floeter](https://wordpress.org/support/users/kometschuh/)
 * (@kometschuh)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/disabling-styles/#post-5115766)
 * The change can be downloaded here: [https://github.com/mkrdip/category-posts-widget](https://github.com/mkrdip/category-posts-widget).
 * – A new option “Disable Widget CSS” (Default: false).
    – Backward compatible (
   nothing to do on existing styles).
 * Best regards

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

The topic ‘disabling styles’ is closed to new replies.

 * ![](https://ps.w.org/category-posts/assets/icon-256x256.png?rev=1419008)
 * [Category Posts Widget](https://wordpress.org/plugins/category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/category-posts/reviews/)

 * 7 replies
 * 7 participants
 * Last reply from: [Daniel Floeter](https://wordpress.org/support/users/kometschuh/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/disabling-styles/#post-5115766)
 * Status: resolved