Search
 
SCRIPT & CODE EXAMPLE
 

PHP

add custom style to wordpress editor

// ADD CSS on WP Editor
// On your functions.php file inside your theme
add_action( 'after_setup_theme', 'mam_gutenberg_css' );
function mam_gutenberg_css(){
  add_theme_support( 'editor-styles' ); // if you don't add this line, your stylesheet won't be added
  add_editor_style( 'custom-editor-style.css' );
}

// after create the 'custom-editor-style.css' file on the theme path and put whatever
Comment

PREVIOUS NEXT
Code Example
Php :: how to inherit a class php 
Php :: wpdb get results foreach 
Php :: laravel redirect to controller method 
Php :: php www to non www redirect 
Php :: php ofreach 
Php :: migration rename column laravel 
Php :: laravel httaccess for apache 
Php :: create if not exist laravel 
Php :: store fetched data into array php 
Php :: laravel artisan call with confirm 
Php :: square root php 
Php :: php to lowercase 
Php :: laravel eloquent without relation 
Php :: updateorcreate laravel 
Php :: laravel drop foreign key 
Php :: how to change woocommerce read more text 
Php :: php delete directory 
Php :: check method in laravel 
Php :: php sum of digits 
Php :: how to change php version in cpanel 
Php :: laravel collection pluck 
Php :: how to add javascript to a php file 
Php :: encrypt & decrypt laravel 
Php :: unlink(p1): No such file or directory 
Php :: name of today php 
Php :: php get option value 
Php :: how to add share icon in wordpress 
Php :: brew reinstall php 7.4 
Php :: php formData curl 
Php :: change field name in validation laravel 8 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =