WordPress.org

Ready to get started?Download WordPress

Forums

Truly allow HTML editing! (10 posts)

  1. ngyinchern
    Member
    Posted 2 years ago #

    It is impossible now for me to edit and add HTML codes without WordPress breaking it up with its auto formatting!

    WTH are you guys thinking!!!

    Is there a way I can truly disable this? Switching over from HTML view to Visual Editor view just breaks it up. WTH.

    I insert my ad code:

    <a href="http://www.dpbolvw.net/click-3967403-10816105" target="_blank">
    <img src="http://www.awltovhc.com/image-3967403-10816105" width="468" height="60" alt="Parallels Desktop 7 for Mac" border="0"/></a>

    And it turns into

    <a href="http://www.dpbolvw.net/click-3967403-10816105" target="_blank">
    <img style="display: none !important; visibility: hidden !important; opacity: 0 !important;" src="http://www.awltovhc.com/image-3967403-10816105" alt="Parallels Desktop 7 for Mac" width="0px" height="0px" border="0" /></a>

    What the hell we you guys thinking???

  2. fonglh
    Member
    Posted 2 years ago #

    Don't switch between HTML view and the Visual Editor. This is a known issue with the TinyMCE editor.

    Just do everything in HTML view.

  3. ngyinchern
    Member
    Posted 2 years ago #

    Let me try that again. But my experience was that with 3.3, even doing everything in HTML view seems to have mess up the HTMLs...

  4. fonglh
    Member
    Posted 2 years ago #

    I just tried copying the chunk of code you provided in HTML view on 3.3.

    The code is saved exactly as copied.

    Perhaps you have a plugin which is interfering.

  5. I have the same experience as fonglh. Works fine for me.

  6. mitchpowell
    Member
    Posted 2 years ago #

    So, this means that if you have a client who wants to work on his own website but doesn't understand HTML, and you've just placed an AWeber optin form in a post or page using the HTML editor, but he comes in and insists on using the Visual editor, you now have to tell your client to never use the Visual editor on that post or page ever again, or else the form gets stripped out?

  7. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

  8. mitchpowell
    Member
    Posted 2 years ago #

    @cubecolour,

    Thank you for the suggestion, but I tried that plugin already. I installed and activated and configured it properly (I'm sure I did,) and it failed to actually disable the visual editor. The checkbox showed up on the right, I ticked it and updated the post, and the 'Visual' tab was still active. I updated the post after clicking the 'Visual' tab, and the script was stripped out of the page.

    This plugin, even if it did work, still doesn't resolve my issue with my client, because he could untick the box anyway, insisting on editing pages and posts in the Visual editor. There HAS to be a way to keep an AWeber script in a post or page regardless of the editing interface.

    I'm not adept enough at shortcodes to write one that will do what I want. I'm trying some tutorials but time is an issue, and this is a bit of a learning curve for me. I'm also trying to make the Visual Editor match the styling as clos as possible to what shows on the front end, and this too, is taking a lot of time. I'd hire a real developer if I could afford it, but I can't right now.

    Thanks again,
    Mitch

  9. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 2 years ago #

    I've just tried the plugin & it works for me, so you may have a conflict with another plugin.

    Perhaps a front-end editor will suit you better if your goal is true wysiwyg: http://wordpress.org/extend/plugins/front-end-editor/

  10. olyma
    Member
    Posted 2 years ago #

    @mitchpowell

    I once had a similar problem with one of my clients, one way I found to work around it was to incorporating the ad, or whatever other special coding you may have, into a template itself. For those specific pages displaying it, on the editing page, under "page attributes" and "template," simply select whatever template option that page will have, then the client can't mess up the specific special coding that is a part of that page.

    Setting up new template options is pretty easy and you can use z-indexing in the template to coax the lettering around whatever you are inserting/overlaying.

Topic Closed

This topic has been closed to new replies.

About this Topic