Xara Graphic Studio:
Xara's three most popular graphics titles in one great value bundle, offers everything you need for creating still and animated 2D and 3D graphics for print and the web, including your everyday photo work.
Find out moreCD: $189
Retail: $189
Home Free Templates WordPress Theme Themes Style in WordPress Editor

Themes Style in WordPress Editor

Attention: open in a new window. PDFPrintE-mail

Pro­b­lem: In Wordpress when you post or make page the style is not the same as on the actual page?

Solution:

  1. Go to theme foder and copy style.css to editor-style.css
  2. In the file functions.php after:
    add_filter('comments_template', 'legacy_comments');
    function legacy_comments($file) {
    if(!function_exists('wp_list_comments')) : // WP 2.7-only check
    $file = TEMPLATEPATH.'/legacy.comments.php';
    endif;
    return $file;
    }
  3. You have to insert:
    add_filter('mce_css', 'my_editor_style');
    function my_editor_style($url) {

    if ( !empty($url) )
    $url .= ‘,’;

    // Change the path here if using sub-directory
    $url .= trailings­las­hit( get_stylesheet_directory_uri() ) . ‘editor-style.css’;

    return $url;
    }

  4. Now you can open the WordPress editor and you should have the right style. You may need to remove some unessesary formats from editor-style.css ... i removed the black background only.
Primer Wordpress Editor sa Themes css fajl

Exem­pel Word­Press Edi­tor med css frÃ¥n Temat.