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
- How can I vertically center a “div” element for all browsers using CSS?
- How do I hide the bullets on my list for the sidebar?
- CSS display: inline vs inline-block
- How to center HTML5 Videos?
- Text border using css (border around text)
- U8Qtu
- difference between css height : 100% vs height : auto
- Using margin / padding to space span tag from the rest of the p tag
- Could the WP script/style loader be used to concatenate and gzip scripts and styles in the front-end?
- Style something only on the home page
- How do I register/enqueue a custom CSS file?
- Why isn’t my theme processing SASS?
- PageLines theme: how to change the background color of the main content vs. entire page?
- Trying to load a responsive CSS media query using Custom Taxonmy
- WordPress tinymce prints empty P tag and break html format
- Changing CSS in Twenty Eleven to change font size of body text
- Deregister CSS style link ‘open-sans-css’
- Disable HTML (Text) Tab in Post Editor
- I want to change my post titles from h2 to H1
- Change logo on specific page id using css
- Write text below a specific part of a sentence
- Style classic editor buttons
- Remove id attribute from stylesheet link
- Layer post title on top of image WordPress featured thumbnail image
- Twig + wordpress – how to get filemtime for style.css
- Font embedding in wordpress
- How to Add Custom CSS to the Media Thickbox?
- Link theme options page using ACF to styles
- Does costum code in the root folder get lost when wordpress is updated?
- WordPress Light/Dark Theme best practices? Is there a way that really works?
- Add buttons to the new TinyMCE WP Editor. Javascript API
- How to i style the elements from the TinyMCE
- Why is the media upload button not in the main toolbar & can it be placed there instead?
- Background image reversed on pages after home page [closed]
- How to get an unique identifier for a page/post/category/tag etc.?
- Remove CSS Attribute by Overriding CSS in Child Theme
- CSS gap issue in div element
- WordPress custom CSS file overrided by internal CSS [closed]
- Can you change the color of svg icons to the global color I choose from WordPress
- Theme twentythirteen widget area clearfix
- Disable CSS for IE 8 and earlier.
- TinyMCE Advances is removing blanks (” “)
- Using categories on navigation bar instead of pages
- I have a wordpress website which uses a really weird font on Opera. What do I need to do to fix it?
- Elementor – Edit Global Colors Order
- the_post layout
- Modal dialog under the backdrop
- Trying to modify the background of a form on a specific page
- Clickable Text To Replace Radio buttons
- How to remove the specific class
- Customizer Appearance Issue
- Change mobile menu color from red to another color
- Change the version of default style.css in wordpress
- Hide duplicate entry title
- Error in backend: Failed to load plugin: tabfocus from url
- How to set different color in a select box due to selection with css
- Fonts are parsed in one way but rendered in a different way
- How to enqueue google fonts if we use directly in style.css
- Trouble with adding preloader to my home page index.html and index.js
- How to change in css with a custom theme?
- How can a left and right margin be added to the admin bar without access to “…wp-includes/admin-bar.php”?
- Inserting a DIV Block Into a Listing of Excerpts?
- WordPress Custom Superfish CSS Problem [closed]
- Browser stacks different versions of style.css
- Is it possible to make invisible a div only on certain pages using CSS?
- What CSS selectors to know for WordPress? [closed]
- MY CSS FILE IS MISBEHAVING. IS NOT WORKING WELL ON MY WP SITE [closed]
- How enqueue CSS out of theme folder?
- Styling not refreshing for old visitors on WordPress
- How to add CSS to WordPress
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- Wrap post titles containing slashes on narrow viewports
- Import css file from node_modules using @wordpress/scripts