Which editor are you using?.
No. Never switch editing tabs. Pick a tab and stick to it for the life of that Post or Page.
I’ve tried both. Both mess up the code. Can you offer any help to the problem?
Surely it can’t just be me that WordPress adds </ br> tags to.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
One of the tabs is meant for plain text and formatting that, so when you press enter, it adds a <br /> element (behind the scenes).
The other tab is for the behind the scenes code, so that’s where you should be putting your HTML.
Guys I understand the difference between editors. I’m using the text editor, not visual. Although I’ve tried visual.
Are you, at any point, switching between editing tabs? Are you pasting content in the the Text tab from elsewhere? Can you replicate the problem using the default theme with all plugins deactivated?
No. I wouldn’t dare switch between editors as we all know WordPress hates that. Before I try to replicate.. should/will WordPress output html/css exactly how it is written in the text editor or will it always add it’s own code?