Add Theme Style to WordPress TinyMCE


/ Published in: PHP
Save to your folder(s)

This PHP adds the style.css of the active Theme to the WordPress TinyMCE Post and Page editor.


Copy this code and paste it in your HTML
  1. /* USE CUSTOM STYLE.CSS IN POST EDITOR */
  2. add_action('init', 'add_style');
  3. function add_style() {
  4. add_editor_style('style.css');
  5. }
  6. /* END USE CUSTOM STYLE.CSS IN POST EDITOR */

URL: http://eckstein.id.au/12590/wordpress/functions-tinymce-style

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.