Home > iNove > iNove theme: add CSS style to Editor

iNove theme: add CSS style to Editor

Last edited by on 10 December 2013 at 14:33

I have added to feature to use a custom css to style the WordPress default editor to look like the main site.

It is explained here: add_editor_style

Open

[cce]/wp-content/themes/inove/functions.php[/cce]

and just after

[cce_php]<?php[/cce]

add

[cce_php]add_editor_style('css/editor-style.css');[/cce]

Now create the directory css/ and the file editor-style.css

[cce]/wp-content/themes/inove/css/editor-style.css[/css]

Inside paste

[cce_css]body {
  font-family: Verdana,"BitStream vera Sans",Tahoma,Helvetica,Sans-serif;
  font-size: 12px;
  color: #555555;
  width: 605px;
  padding: 38px 15px 40px 20px; /* sum of #main { padding: 13px 15px 15px; } and .post .content { padding: 25px 0 25px 5px; } */
  margin: 0;
  line-height: 145%;
}

pre {
  background-color: #F1F1F1;
  color: #000000;
  font: 13px/1.4em Monaco,Lucida Console,monospace;
  padding: 5px;
}

p {
  margin: 0 0 10px;
}

h1 {
  font-size: 200%;
  font-family: Arial;
  font-weight: bold;
  letter-spacing: -0.05em;
  margin: 50px 0 10px 0;
  padding: 0;
}[/cce]

 

 

 

Enjoy 🙂

Categories: Wordpress, iNove
  1. No comments yet.
  1. No trackbacks yet.