Is there a way to delete “wp-block-group__inner-container” div from the gutenberg editor view?
Is there a way to delete “wp-block-group__inner-container” div from the gutenberg editor view?
Is there a way to delete “wp-block-group__inner-container” div from the gutenberg editor view?
UDATE Following @TomJNowell’s comments, I tried removing container queries from my stylesheets, and as add_editor_style worked as expected. This seems like a bug to me, though there may be a logical explanation for this I am not aware of. In my case, I think I would prefer to keep using container queries, so I will … Read more
Here a little function which takes care to hide (In admin) Custom Post Types. function remove_from_admin_menu(){ // Check capability (admin) if( current_user_can( ‘edit_dashboard’ )){ //Do nothing } elseif ( current_user_can( ‘moderate_comments’ ) ) { // editor capability remove_menu_page( ‘edit.php?post_type=cpt01’ ); // add here your cpt name remove_menu_page( ‘edit.php?post_type=cpt02’ ); remove_menu_page( ‘edit.php?post_type=cpt03’ ); // for submenu … Read more
You need to call add_theme_support( ‘editor-styles’ ) in the after_setup_theme hook. More information
add_editor_style to the blog editor view (Gutenberg?)
How to apply padding to TinyMCE editor?
Below is the full code to include the editor style in a common way. <?php function my_theme_add_editor_styles() { add_editor_style( ‘custom-editor-style.css’ ); } add_action( ‘admin_init’, ‘my_theme_add_editor_styles’ ); ?> When you are adding the custom editor style, you need to use admin_init hook which is triggered only when you are inside the admin panel. So the stylesheet … Read more
The first issue is that add_editor_style() is usually called in Theme setup functions that get hooked into after_setup_theme – which is well before the query is set up and the post type determined. So, you’ll need to move add_editor_style() to a separate callback, that gets called after the query is setup, but before TinyMCE is … Read more
Custom styles dropdown in TinyMCE editor – not working with headings
Auto LTR-RTL Text Direction in wordpress post!