Skip to content
No results
  • Admin Panel
  • Security
  • Optimization
  • WooCommerce
    • General
    • Products
    • Coupon
    • Cart & Checkout
  • Management
  • Content
  • Media
  • Elementor
  • Gutenberg
Snipjar
No results
  • Admin Panel
  • Security
  • Optimization
  • WooCommerce
    • General
    • Products
    • Coupon
    • Cart & Checkout
  • Management
  • Content
  • Media
  • Elementor
  • Gutenberg
Snipjar
  • Gutenberg, Optimization

Remove Gutenberg Block Library CSS from loading on the frontend

function smartwp_remove_wp_block_library_css(){
 wp_dequeue_style( 'wp-block-library' );
 wp_dequeue_style( 'wp-block-library-theme' );
}
add_action( 'wp_enqueue_scripts', 'smartwp_remove_wp_block_library_css' );
Previous Post Open all external links in new tab
Next Post Change excerpt length
  • Privacy Policy

Curated with ❤️ by Snipjar.