How to use text editor as html
-
Hello,
when i use text editor in WP, i have two options :
- or i stop adding automatic
<p>
and<br>
tags, - or the opposit, it gives those tags automatically.
I get crazy by that like other millions of people on the web… i would like to work as on a normal html page : when i push “enter”, it gives an empty line as we see it on the screen and when we add a code, it gives a the code which behaves like a code.
Now, for example, if i do this in the text :
this is a sample sentences <h2>here i want two words with h2 style</h2> here my sentence continues...
but in the reality it gives a result like this :
<p>this is a sample sentences <br /> <h2>here i want two words with h2 style</h2><br /> here my sentence continues...</p>
I understood and i tried to remove automatisation with adding remove_filter (‘the_content’, ‘wpautop’); to the functions file but in this case at each line break i must add a code which is crazy.
Is there a solution ???
- or i stop adding automatic
- The topic ‘How to use text editor as html’ is closed to new replies.