• I’m a code newbie and I was just making a wordpress post and instead of using the correct line break code of <br /> I used </ br>. When I switched to the visual editor and back to the HTML editor, to my surprise the line break code was still there. But it had changed from </ br> to <!– br–>

    Should I just use that <!– br–> code now instead of <br /> or </ br>? If it’s okay, I would like to because I like switching between visual and html tabs. This allows me to do that with the line break code to disappear. So should i use that <!– br–>? I just dont want it to break my theme later on if i’m using the wrong code

Viewing 3 replies - 1 through 3 (of 3 total)
  • <!–br–> is an HTML comment. It will not perform a line break.

    The WP TinyMCE editor is notorious for changing your code when switching between Visual and HTML modes.

    I recommend the CKEditor plugin. However, I have found that it does not work with a few other plugins that only use TinyMCE.

    Try it – you may like it.

    Thread Starter Jmart10

    (@jmart10)

    I understand but for some reason it DOES perform a line break. test it yourself

    type in HTML and leave it there (until db process done)….many do not get this point.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Line breaks changing to when switching between HTML and Visual’ is closed to new replies.