Search
 
SCRIPT & CODE EXAMPLE
 

PHP

add css to gutenberg 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 assign value of a js variable to a php variable 
Php :: aes php 
Php :: laravel run specific feature test 
Php :: creating thumbnail in codeigniter 
Php :: larave Soft Deletes 
Php :: php Calculate the number of months between two dates 
Php :: php conditionally remove element from array 
Php :: wp post featured image not showing admin 
Php :: send data from php to python 
Php :: get page thumbnail id wordpress 
Php :: PHP sqrt() Function 
Php :: php server function 
Php :: laravel checking if a record exists 
Php :: update many laravel 
Php :: blade select selected 
Php :: get_previous_posts_link add class wordpress 
Php :: print asociative array php 
Php :: laravel make model all with resources api 
Php :: laravel pluck relationship 
Php :: 419 page expired laravel 
Php :: eloquent all only one culomn 
Php :: how to add javascript in php 
Php :: laravel without global scope 
Php :: laravel 8 blade get days and hours ago 
Php :: doctrine orm get all 
Php :: searchable dropdown laravel blade 
Php :: php new object 
Php :: Primary Termguzzlehttp/guzzle version with laravel-websockek 
Php :: comments in php 
Php :: php add to multidimensional array 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =