Title: Unload css file?
Last modified: July 3, 2018

---

# Unload css file?

 *  Resolved [longnha](https://wordpress.org/support/users/longnha/)
 * (@longnha)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/unload-css-file/)
 * Hi,
 * Is it possible to unload the plugin css file and use my own? It’s one least file
   to load which save the resource. 🙂
 * Also, is it possible to cache the result, like 5 minutes?
 * Thank you.

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

 *  [radektj](https://wordpress.org/support/users/radektj/)
 * (@radektj)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/unload-css-file/#post-10460535)
 * plugins/advanced-random-posts-widget/arpw.php and remove the code (line 131-138):
 *     ```
       /**
        * Enqueue front-end style.
        *
       	* @since  0.0.1
        */
       function plugin_style() {
       	wp_register_style( 'arpw-style', trailingslashit( ARPW_ASSETS ) . 'css/arpw-frontend.css' );
       }
       ```
   
 * custom css – Appearance->Customize->Additional CSS
 * cache – I can’t help
 *  Thread Starter [longnha](https://wordpress.org/support/users/longnha/)
 * (@longnha)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/unload-css-file/#post-10465987)
 * Thank you.
 *  Thread Starter [longnha](https://wordpress.org/support/users/longnha/)
 * (@longnha)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/unload-css-file/#post-10477951)
 * Hi,
 * Unfortunately, I got error message in error_log:
 * PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback,
   class ‘ARP_Widget’ does not have a method ‘plugin_style’ in wp-includes/class-
   wp-hook.php on line 286
 * Anyway to fix it please?
 * Thanks.
 *  Thread Starter [longnha](https://wordpress.org/support/users/longnha/)
 * (@longnha)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/unload-css-file/#post-10477968)
 * Solved.

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

The topic ‘Unload css file?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-random-posts-widget_a7acd7.
   svg)
 * [Advanced Random Posts Widget](https://wordpress.org/plugins/advanced-random-posts-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-random-posts-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-random-posts-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-random-posts-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-random-posts-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-random-posts-widget/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [longnha](https://wordpress.org/support/users/longnha/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/unload-css-file/#post-10477968)
 * Status: resolved