• Seems like an obvious question, but I tried searching and could not come up with an answer.
    Is there a way to create a page in WordPress by just copying and pasting the html code I have created in Notepad? I like to have my html formatted/indented nicely, and the HTML functionality in the WYSIWYG editor messes with this. If I use the default WordPress editor, it randomly adds <p> tags in places where I don’t want them (I know it’s just trying to help).
    Does anyone know of a way I can just copy html code into a Page and not have it toyed with?
    Thanks in advance.

Viewing 15 replies - 1 through 15 (of 15 total)
  • In 2.0 admin go into options/writing and uncheck the box that says “Users should use the visual rich editor by default”. Save your new setting.

    Now go into write/post and click the button that says “html” and paste out of notepad and into that window.

    Oh, one more thing . . .

    This will allow you to post html nicely, but there are no guarantees that WP won’t add whitespace where you don’t want it (like in list code where it triggers IE hasnolayout bugs) so I’m not sure this is going to do what you want. If you want it to look “pretty” when you look at source code, you might find it doesn’t.

    Thread Starter oh_hello

    (@oh_hello)

    I’m going to assume you meant to say, “CHECK the box that says ‘Users should use the visual rich editor by default'”, as the visual rich editor has the html button.
    I have done this, but like you said it doesn’t keep the nice formatting of my html.
    I suppose this is the best I can do at this point.

    No…. if you want mostly “plain” html, you want the damn RTE UNactivated. UNcheck the box…. it’s “on” by default….

    Thread Starter oh_hello

    (@oh_hello)

    I understand that, but the RTE does a better job of keeping my html as it was, the basic editor adds in extra stuff. I think that’s what kickass was getting at.
    I was looking for maybe another way I haven’t thought of to accomplish perfect copy & paste, but I’m getting the feeling it’s not possible.

    Well, I use topstyle pro to edit everything, including wp files, and my indenting is fine.

    Thread Starter oh_hello

    (@oh_hello)

    Does WordPress not add <p> tags to some (seems irregular to me) line breaks?

    Y’know, that’s an interesting question. People have said that it does, but I’ve never really had a problem with it myself. So I don’t have a definitive answer.

    WPChina

    (@wordpresschina)

    It does add tags. It’s a huge nuisance.

    I installed Text Control plugin to help alleviate those problems:
    http://dev.wp-plugins.org/wiki/TextControl

    The plugin still doesn’t work perfectly and I have lots of gripes about the inability to paste HTML directly into the WP system. I hope some imaginative person can devise a better way.

    I repeat–

    UNCHECK the box.

    Maybe if you want your html to look pretty you should be using static html pages to blog . . . Oops, Podz, I REALLY didn’t mean that in a sarcastic manner, really! *hides behind vkaryl*

    Thread Starter oh_hello

    (@oh_hello)

    Good thread folks, thanks.

    Semi-related to this thread. I’m unhappy with the WYSIWYG editor, and so I’ve UNchecked the box that turns it on by default (and then saved the changed option).

    But it’s still on. It won’t go away! I’ve done this before successfully on my own blog, and I’m helping my husband set up his blog, but I just can’t get the WYSIWYG to turn off in his blog.

    Any ideas?

    You need to turn it of on the user profile page too – it’s the tickbox right at the bottom of the page. The “default” option only affects new users created from that point on. Existing users are assumed to want the WYSIWYG editor.

    Personally, I think the WYSIWYG on/off option should be on the posting page, where most people are probably going to look for it…

    manstraw

    (@manstraw)

    I’ve been looking for a way to turn off the visual editor on an individual post of page. I have one post that has a bit of javascript that breaks every time the visual editor displays it. Has anyone written a plug in to do that? Could anyone point me to a solution? I’m otherwise quite happy with the visual editor. If I can control it on a post by post basis, I’ll as happy as ants in a bowl of jam.

    moshu

    (@moshu)

    You can turn it off anytime you go in to write/edit a post that has your own code. admin > Users > Your profile > bottom left.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Post using only html’ is closed to new replies.