You shouldn’t need an action to add an editor style. Simple add the following anywhere in your functions.php:
add_editor_style('css/editor-style.css');
Related Posts:
- When to use add_action(‘init’) vs add_action(‘wp_enqueue_scripts’)
- Change admin bar to default:off
- How to add Color Picker in Theme Options for the following?
- Template for individual post designs
- Retrieve the template directory URI via global or get_template_directory_uri() every time?
- Adding Content Areas to Custom Page Template
- Add class to before_widget for all widgets with a dropdown and a counter
- What is the best practice for customizing a plugin’s JavaScript/jQuery?
- Subdirectory install error
- How can i change menu link when page content empty?
- Override default cropping in WordPress [duplicate]
- How to load different CSS in different Header?
- How can I add an incremental class identifier to my sidebar widgets?
- How to preset a sidebar widget with default content via script?
- How to use Iris color picker on front-end?
- First post of each category
- create blocks programmtically on theme activation
- Possible to add “Template” selector to posts?
- the_tags without hyperlinks?
- How to keep theme layout the same when admin gray bar is present?
- Any tag pagination page (except the 1st page) loads index.php template instead of tag.php
- Adding LazyLoad and InfiniteScroll to WordPress Theme
- WordPress default theme css units
- How to remove class attributes from custom menu markup?
- If I build a custom theme, will it update?
- Implement advanced search
- Implement content-nosidebar.php / content-leftsidebar.php
- Where should I update_options in a theme?
- Users table association with users_metadata table appears broken
- multisite: global menu containing network site links?
- Injecting a custom sql query into a page/theme
- What are the Entry classes for?
- Using an if statement in the theme customizer page
- Installing WordPress locally
- Custom markup with wp_nav_menu based on pages
- How to edit my theme for full width?
- Force Balance Tags not working
- Use second time navigation.js in underscores [closed]
- Fetch wordpress video attachment with post ID
- Template selection area is not visible on page editor sidebar in wordpress twentty sixteen default theme
- Why does has_nav_menu return false when get_registered_nav_menus shows the opposite?
- Displaying icon image for WordPress post formats, is there a cleaner way to do this?
- Overrite parent functions using child functions
- How can I develop multiple widgets for a WordPress theme?
- WordPress 3 botches my Custom Meta Box values on Save
- How to create first post, fifth post full width, rest in three columns and so on
- How to seperate static phrases from template files in custom theme?
- Weirdness in jQuery supplied with WordPress
- How can I compare publish and update dates for a single post?
- How to code custom special page
- Displaying the right content on a page url
- Get Post’s Excerpt Without the Wrapping tags and the Read More link
- Is it possible to set a variable for get_post_meta?
- Custom admin logo not showing after wordpress 4.5 upgrade
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- Translate a child theme with pure PHP and gettext
- Injecting pre-defined text from custom page template to editor
- Remove h1 from 2015 theme
- Only the latest post shows up on post page?
- WordPress pulling in random page themes
- Trouble in enquing all js files under certain directory
- Can’t change theme name
- multiple queries to get posts from same category?
- Stop WordPress from showing images on non post pages
- Parent/Child pages
- enqueuing external and internal js and css in wordpress did not work with owl.js animate.css
- “The REST API did not process the context query parameter correctly.” Custom theme conflicting with Media Library
- Wrong activation/confirmation link in email
- Next and previous post link shows error in first and last post
- Disabling wordpress added class
- Problem with pagination link (error 404)
- WordPress wp_get_current_user returning blank values until refresh
- use a single nonce in three different nonce field
- Whether an tag is required in header?
- Theme is Enqueueing Everything in Footer
- Local theme changes upload on server but theme changes not showing
- Media & Plugin screens stall
- wp_kses allow checkbox class and checked
- Is wp_mail plugin territory?
- HTML TO WP Theme : Submenu goes down wp_nav_menu
- New created Theme leads to malfunctioning Xampp Apache –> functions.php is cause
- Understanding WordPress theme files and underscores
- New theme HTML5 Support for Search in WordPress 4.4
- How do I remove p tag *insertions*? Disabling `wpautop` removes manual tags
- Create a variable with string, array or multiple values
- Woocommerce Theme Reviews / Comments
- What hook to use for loading a custom class extension during Theme initialization?
- Moving Posts and Users Only to New Site
- What are these variables and where are they documented?
- Use external fonts in WordPress stylesheet
- Custom link color or stylesheets
- What is the advantage of using home.php over index.php for the front page
- Why do some sites show themes/”themename” as the only theme?
- How can i move my product name & price from below thumbnail to be the rollover content in Avada & Woocommerce?
- Is there a way to have WordPress autodetect page templates in the page-templates directory and any sub-folders?
- Theme template file for a specific custom taxonomy
- How do I work with responsive images in WordPress? (img srcset/sizes)
- How can I use pre declared blocks in a php file?
- jQuery Snippet Not Working on WordPress Site [closed]
- WordPress Two Level Filters on Getting Custom Taxonomy Terms