• Not sure why and how but my theme stylesheet stopped working in the visual editor. the only css styles that are applying to any of the content inside the visual editor are the ones comming from the ../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css

    All I’ve done today is update couple of plugins but even after dissabling thsese there was no difference…

    Any ideas?

    thnaks in adviance
    Mariya

Viewing 9 replies - 1 through 9 (of 9 total)
  • Did you update your active theme? The active theme is what handles customization of the visual editor in the wp-admin.

    Thread Starter stelldust

    (@stelldust)

    nope, and even after reinstalling it it didn’t make any difference.

    I did activate the Twenty-ten theme and it does import the stylesheet in the editor.

    I’ve dissabled all plugins – no effect

    So you are saying that your active theme no longer has it? Maybe check your theme’s folder for the admin-css.css file?

    Thread Starter stelldust

    (@stelldust)

    admin-css.css is in my admin folder and it has very few lines of css. I’m sure that’s normal.

    when i inspect an element in the visual editor with firebug it only shows the properties applied by the tynimce css and it doesn’t look like the theme stylesheet is imported at all.

    Ah! So maybe something happened where your theme no longer calls the editor style! Change your admin style sheet filename to “editor-style.css” and then put this in your themes functions.php

    // This theme styles the visual editor with editor-style.css to match the theme style.
    add_editor_style();

    Try that and see what happens

    Thread Starter stelldust

    (@stelldust)

    sorry, nothing happens… that’s really bizzare.

    Thread Starter stelldust

    (@stelldust)

    I’ve added a custom editor style e.g. my-editor-styles.css and called it in the beginning of the functions.php file

    `// This theme styles the visual editor with editor-style.css to match the theme style.
    add_editor_style(my-editor-styles.css);

    I’ve added all css styles from my theme style.css in it.
    this seems to work but still bugs me what happened.

    thanks for your help, Tom

    It is, but the good news is that your site isn’t broken, right?

    What did the visual css do for you? Was there something specific?

    Thread Starter stelldust

    (@stelldust)

    it’s quite complex layout inside the page templates and even though i don’t use the visual editor myself, my client should be able to update the pages … so the closest the content looks in the visual editor the better for him.

    cheeers again

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘main theme stylesheet stop working in visual editor’ is closed to new replies.