Advertisement
skubik

WordPress TinyMCE Custom Style Enquing & CSS

Aug 26th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. In functions.php:
  2.  
  3. add_action( 'after_setup_theme', 'custom_editor_setup' );
  4. function custom_editor_setup()
  5. {
  6. add_editor_style( 'custom-editor-style.css' );
  7. }
  8.  
  9.  
  10.  
  11.  
  12.  
  13. In custom-editor-style.css:
  14.  
  15. html .mceContentBody {
  16. font-size: 100%;
  17. background-color: #0F0 !important;
  18. }
  19.  
  20. body {
  21. color: #0F0;
  22. font-family: "Noto Serif", serif;
  23. font-weight: 400;
  24. font-size: 17px;
  25. line-height: 1.6471;
  26. margin: 20px 40px;
  27. max-width: 660px;
  28. vertical-align: baseline;
  29.  
  30. background: #F00 !important;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement