• Resolved odie2

    (@odie2)


    Hi,

    I am just optimizing my website and I found that fpw_styles_css for me is not needed, even more – at the moment I am overwriting many of those styles.

    I would just filter in functions.php to __return_false, so that CSS won’t be included for me and then I could remove some overwrites from my main CSS file.

    Greetings

    https://ww.wp.xz.cn/plugins/feature-a-page-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mrwweb

    (@mrwweb)

    @odie2,

    Lucky for us, there’s wp_dequeue_style() built straight into WordPress.

    This should do the trick:

    add_action( 'wp_enqueue_scripts', 'wporg7412296_dequeue_fpw_styles' );
    function wporg7412296_dequeue_fpw_styles() {
        wp_dequeue_style( 'fpw_styles_css' );
    };
    Thread Starter odie2

    (@odie2)

    Ah, yes, thanks, my bad.
    I forgot about that 🙂

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

The topic ‘Filter fpw_styles_css’ is closed to new replies.