add_editor_style is not working

I’ve now realized the code I posted works. I expected to see the stylesheet referenced in the head, but there is no such reference. It turns out the styles are being applied solely on the basis of the settings in tinyMCEPreInit. In fact, this is all that’s needed: add_editor_style(‘editor-style.css’);

Different css rules for TinyMCE and Gutenberg while using add_editor_style()

SHORT VERSION Using css it’s possible to use of the :not() selector to exclude Tinymce instances, e.g. body:not(.mce-content-body) {…} LONG VERSION Let’s assume we have declared theme support for editor styles and included an editor stylesheet somewhere in our theme (e.g functions.php) like this: add_theme_support( ‘editor-styles’ ); add_editor_style( ‘something/something/css/editor.css’ ); For the sake of this … Read more

Editor background colour in full screen

This kind of problems are solved using Chrome Inspector or Firefox Firebug. Inspecting the element, we get the necessary ID’s or Classes to add in the stylesheet. So, .mceContentBody.wp-fullscreen-editor is the one we need to address in the theme file editor-style.css: .mceContentBody.wp-editor, .mceContentBody.wp-fullscreen-editor { background-color: #000; color: #fff; }

Using main style.css with add_editor_style

The simplest answer is: you can use whatever stylesheet you want for the editor. editor-style.css is just the default stylesheet loaded if none is passed to add_editor_style(). This will load the specified stylesheet: add_editor_style( ‘some-stylsheet.css’ ); This will load editor-style.css: add_editor_style(); Use whatever better fits your needs. By the way, it is better practice to … Read more

Having a lot of difficulty getting add_editor_style() to load into source code

You shouldn’t call add_editor_style() directly in your functions.php file. Instead, you should wait until the plugins and themes have been loaded: add_action( ‘after_setup_theme’, ‘add_editor_style’ ); If you already have a function hooked to after_setup_theme, you can call add_editor_style() inside there instead. You then need create a file called editor-style.css and place it in your theme … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)