To add styles that affect TinyMCE you need to do the following:
add_action( 'admin_init', 'editor_styles' );
function editor_styles() {
add_editor_style( get_stylesheet_directory_uri() . 'editor-style.css' );
}
Basically it will load a editor-style.css file located in the root of your child theme.
Related Posts:
- Forcing reload of editor-style.css
- How to add a class to ul tags created by the WordPress editor Tinymce?
- How can I insert HTML attributes with an existing TinyMCE button?
- TinyMCE: adding CSS to format dropdown
- How to include own css on wordpress tinymce editor?
- How do i use fontawesome icons in TinyMce editor?
- How can I make the wordpress editor apply the selected template?
- How to make float element in tinymce
- Efficient way to edit WordPress themes
- WordPress stripping out BR tags, need assistance
- Is there a filter for editor-style.css file?
- Different css rules for TinyMCE and Gutenberg while using add_editor_style()
- Custom styles dropdown in TinyMCE editor – not working with headings
- jQuery UI styles conflicting with TinyMCE dialog
- Disable File Editing function
- Show class from css in format dropdown
- How to add class to an html output element in tinyMCE paragraph drop down menu
- How can I force the WordPress visual editor to preserve the line breaks after paragraphs?
- Implement editor’ CSS on the custom themes
- TinyMCE on frontend style not working
- How do I separate my theme’s styles from editor styles?
- Apply Classes to post text inside editor
- How to define a special character to change the style of my inline code?
- Bullet List Indentation not showing up in the wordpress
- Enqueue MCE Editor CSS in admin page
- Bullet points not showing in wordpress
- Customize margin between paragraphs using the Gutenberg Style editor
- Why is TinyMCE 4.x not using updated CSS even with forced reload? [closed]
- Making a
- CSS to make HTML page footer stay at bottom of the page with a minimum height, but not overlap the page
- How to get these two divs side-by-side?
- How to change the color of an svg element?
- What is the difference between the selectors “.class.class” and “.class .class”?
- How to implement max-font-size?
- @Media min-width & max-width
- How do I center this form in css?
- How do I horizontally center a span element inside a div
- Is background-color:none valid CSS?
- Float a div above page content
- Brackets – Live Preview not working
- What does an asterisk (*) do in a CSS selector?
- height style property doesn’t work in div elements
- Text not wrapping inside a div element
- How to make padding:auto work in CSS?
- How to vertically center inside the parent element with CSS?
- How can I horizontally align my divs?
- background-size: cover not working?
- combined multiple classes into one css rule
- CSS not working in Chrome
- Pure CSS to make font-size responsive based on dynamic amount of characters
- CSS – display: none; not working
- Is there an opposite to display:none?
- Rainbow gradient on text in CSS
- CSS3 opacity gradient?
- use multiple css filters at the same time?
- font-weight is not working properly?
- What would be the best method to code heading/title for ul or ol, Like we have caption in table?
- How can I make my header image properly responsive?
- CSS fixed width in a span
- Extra TinyMCE editor strips and tags?
- How to enqueue style before style.css
- wp_enqueue_scripts, wp_register_scripts, wp_print_scripts: i’m confused
- What is the correct way to enqueue multiple CSS files?
- Remove wp_add_inline_style
- Disable text tab on WordPress text-editor
- Which Details Are Required For Style.css File Header?
- How to implement different color schemes in your themes
- @font-face doesn’t work
- two tinyMCE editors in the same page
- WordPress Register Style Called Incorrectly
- wp_enqueue_script + how to load JS or CSS in one URL merge call?
- How to target first img in every wordpress post with CSS [closed]
- How to change Parent Themes in Child Theme CSS
- Duplicate and alter sidebar for Twenty Eleven
- Adding Custom Styles to the MCE dropdown toolbar
- hSite has no css on mobile [closed]
- Set Image width=’x%’ (percentage width not pixel width) when inserted via the media manager?
- How to dequeue styles coming from plugins?
- How to set different font family based on text language?
- Relative path in wp_register_style not working
- Enable specific CSS Code for Visitors and specific Roles
- How to exclude certain code from style.css? [closed]
- Can Rich Text features be configured per user?
- WordPress on localhost working, when sharing IP to connect receive err_connection_refused on .js and .css files
- Need Help Figuring Out Admin Menu Hover Styling Class
- How to decrease picture size
- How to Add Custom CSS Buttons to WordPress as a Shortcode?
- Can’t remove WordPress post image height/width attributes?
- whats happening with my index page?
- How do I add an indicator to my .menu-item if it contains a .sub-menu?
- How do you customize the admin bar for buddypress?
- Load in wp admin assets from child theme
- Enqueue styles in new site editor in WordPress 5.9
- Change via CSS the color of social menu icons
- style.css doesn’t load on the home page when front-page.php activated (using stock theme)
- Header’s CSS doesn’t work in Chrome and Opera – any ideas how to fix it?
- @media in bluehost is being commented out [closed]
- Two column Dropdown for WordPress Toolbar
- Change syntax styling of TinyMCE HTML Text Editor
- Trouble adding tiny mce to textarea in custom plugin