Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wordpress disable block styles

<?php
//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' );
    wp_dequeue_style( 'wc-blocks-style' ); // Remove WooCommerce block CSS
} 
add_action( 'wp_enqueue_scripts', 'smartwp_remove_wp_block_library_css', 100 );
Comment

PREVIOUS NEXT
Code Example
Php :: wp_login_form wrong password redirect 
Php :: Clear and delete the folder after the time specified in php 
Php :: laravel collection split 
Php :: How to change site url using wp-config.php 
Php :: docker : from php alpine 
Php :: symnfony bearer token 
Php :: drupal 8 user_load 
Php :: withdefault laravel 
Php :: php filter non utf-8 characters 
Php :: Load differenet .env file in laravel 
Php :: laravel faker example 
Php :: redirect stderr from echo 
Php :: eloquent get record older than 2 days 
Php :: wp image size names 
Php :: basename in php 
Php :: php get first character of each word 
Php :: replace exact word in php 
Php :: phpmyadmin centos 8 
Php :: change the method name in resource in laravel 
Php :: how to disable opcache 
Php :: move_uploaded_file 
Php :: reset id auto increment after deleting a table row in phpmyadmin 
Php :: mysql get number of rows php 
Php :: move uploaded file in php 
Php :: install php 7.1 on ubuntu 18.04 
Php :: replace string in php 
Php :: toggle between login and logout buttons php 
Php :: laravel get data in pivot table 
Php :: laravel 8 websockets 
Php :: laravel blade global variable 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =