• Resolved longnha

    (@longnha)


    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)
  • 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

    (@longnha)

    Thank you.

    Thread Starter longnha

    (@longnha)

    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

    (@longnha)

    Solved.

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

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