• I’m trying to create a custom front page, when add HTML to a ‘page’ via the admin it changes it..

    I.e.

    <p id=”l_bar”><h3>sdfsdff</h3>uihi uihihiui</p>

    <p id=”r_bar”><h3>sdfsdff</h3>uihi uihihiui</p>

    Becomes:

    <p id=”l_bar”> </p>

    <h3>sdfsdff</h3>
    uihi uihihiui
    <p id=”r_bar”> </p>

    <h3>sdfsdff</h3>
    uihi uihihiui

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter krushi

    (@krushi)

    Everytime I go back to edit the page with the WordPress editor it messes it up!

    I’m having to save it in notepad each time and resubmit it.

    Thread Starter krushi

    (@krushi)

    Is there a way I can turn the visual rubbish off perhaps and just use code?

    You could try using a browser that does not support WISYWYG editing. This shows only the code tab. (At least Mac OS Safari works this way.)

    I also found this in another post:

    It may be as simple as you need to turn off the wysiwyg editor:
    admin -> Users -> scroll to bottom left.
    Also go to :
    admin -> Options -> Writing and uncheck box for “WordPress should correct invalidly nested XHTML automatically”.

    Thread Starter krushi

    (@krushi)

    I’ll try these. Thanks.

    Where do you enter HTML code? I need to add a tag line under my blog title.

    Thread Starter krushi

    (@krushi)

    Just do what the above suggested.. then enter your code… you will need to keep it like that though.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Well, for starters:
    <p id="l_bar"><h3>sdfsdff</h3>uihi uihihiui</p>

    That’s not valid code. P is a block level tag that can only contain inline tags. H3 is a block level tag as well. So you can’t put an H3 inside of a P.

    The correct way to write that would be:
    <div id="l_bar"><h3>sdfsdff</h3><p>uihi uihihiui</p></div>

    WordPress is attempting to change your broken code to good code. It’s not particularly good at it, mind you, but it’s better than you seem to be.

    Thread Starter krushi

    (@krushi)

    lol harsh but fair i guess!

    i wish it would just leave it alone though!

    thanks for the advice, i will try hand coding that now.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Adding HTML! Argh!!!’ is closed to new replies.