WordPress changes my html

  • Unknown's avatar

    I’m far from a technical genius and know nothing about html, just so you know.

    I have this HTML code:
    <!DOCTYPE html>
    <head>
    <title>Test</title>
    <meta charset=”UTF-8″>
    </head>
    <p>
    &#10004 &nbsp Testline
    </p>

    To my frustration WordPress changes this in the HTML editor to:
    Test

    <b><span style=”font-size: medium;”> ✔ </span> &nbsp Testline</b>

    Result on website:
    Test

    &#10004 &nbsp Testline

    So in stead of a checkmark and a space it shows the UTF codes !?
    This HTML code works allright on another website.

    I’m just a girl with a cat , please help me, they told me WordPress was easy !

  • Unknown's avatar

    This worked for me:

    I don’t think you want the doctype etc because that duplicates code already in your WordPress page. I think you are just missing the final semicolon in your codes.

    Try using this

    <p>
    <b><font color="00FF00" size="3"> ✔ </font> &nbsp; Testline</b>
    </p>
  • Unknown's avatar

    Oh dear it converted the check even though I have it in the code bracket. Will try again.. But add a semicolon after your 10004 and after the nbsp…

    Test
    
    <p>
    <b><font color="00FF00" size="3"> ✔ </font> &nbsp; Testline</b>
    </p>
  • Unknown's avatar

    Hi Houstonweaver,

    Thanks for your reply but when I put this in the HTML editor(with the added semicolon):

    <b><font color=”00FF00″ size=”3″> ✔ </font>   Testline</b>

    And then go to Visual editor and flip back to the HTML editor my HTML line is completely changed as shown below.

    <b><span style=”font-size: medium;”> ✔ </span>   Testline</b>

    WP added the span tag and suddenly there is a checkmark which it should only show on execution of this line. And this is just 1 line and I have hundreds of lines of HTML code !? I feel a migraine coming up.

    Is there a way to make sure that WordPress keeps its hands of my HTML stuff and just shows an error or something when I do something wrong ?

    Thanks.

  • Unknown's avatar

    Correction this is what I put in the HTML editor
    <b><font color=”00FF00″ size=”3″> ✔ </font>   Testline</b>

  • The topic ‘WordPress changes my html’ is closed to new replies.