• Just wondering, when you’re building a WP theme and you enter all the html code into the “html” part of the editor and then view it in the “visual” mode, is the only way to get correct colors and spacing to use inline styles?

    I would like the content to look similar to the way it does on the page, but seems that’s not possible if your styles are in style-sheets and they have to be inline to get the correct look in the editor?

Viewing 4 replies - 1 through 4 (of 4 total)
  • when you’re building a WP theme

    you would be using the dashboard – appearance – editor

    enter all the html code into the “html” part of the editor and then view it in the “visual” mode

    that is for writing posts or page content.

    what exactly are you working on?
    what are you trying to format?

    or are you referring to the possibility to add styles to the post/page editor:
    http://codex.wordpress.org/Function_Reference/add_editor_style

    Thread Starter gutterboy333

    (@gutterboy333)

    you would be using the dashboard – appearance – editor

    I don’t use that, I do it via my own editor.

    that is for writing posts or page content.

    what exactly are you working on?
    what are you trying to format?

    I know, but I am building a already existing site into a new design that I am turning into a WP theme. So the page already has content, of which I have copied the html code and placed it into the html section of the editor; but when you view it via the visual tab, the colors that they are on the page and spacing etc are not the same, obviously because the admin doesn’t have the stylesheet loaded for it.

    So I’m wondering if it is possible do that?

    I’ll take a look at the add_editor_style page you linked me to, it may be what I need. 🙂

    So the page already has content, of which I have copied the html code and placed it …..

    consider creating page templates for those pages; http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    Thread Starter gutterboy333

    (@gutterboy333)

    That’s what I will be doing. The html code that I copied into the editor is the parts that contain the content that the user needs to have control over.

    Btw, I checked out that linked and it’s exactly what I was looking for – thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Editor formatting and colors’ is closed to new replies.