WordPress.org

Ready to get started?Download WordPress

Forums

Post using only html (16 posts)

  1. oh_hello
    Member
    Posted 8 years ago #

    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.

  2. kickass
    Member
    Posted 8 years ago #

    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.

  3. kickass
    Member
    Posted 8 years ago #

    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.

  4. oh_hello
    Member
    Posted 8 years ago #

    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.

  5. vkaryl
    Member
    Posted 8 years ago #

    No.... if you want mostly "plain" html, you want the damn RTE UNactivated. UNcheck the box.... it's "on" by default....

  6. oh_hello
    Member
    Posted 8 years ago #

    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.

  7. vkaryl
    Member
    Posted 8 years ago #

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

  8. oh_hello
    Member
    Posted 8 years ago #

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

  9. vkaryl
    Member
    Posted 8 years ago #

    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.

  10. WPChina
    Member
    Posted 8 years ago #

    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.

  11. kickass
    Member
    Posted 8 years ago #

    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*

  12. oh_hello
    Member
    Posted 8 years ago #

    Good thread folks, thanks.

  13. lmortimer
    Member
    Posted 8 years ago #

    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?

  14. 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...

  15. manstraw
    Member
    Posted 8 years ago #

    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.

  16. moshu
    Member
    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags