Break-tags are removed

Posted in: Newspaper
Post count: 28

I have a problem, which really keeps annoying me.

As you know the auto formatting is a common wordpress problem. <p> tags are randomly added an </br> tags removed, when you switch from the visual to the html tab.

I tried everything..

Adding this code to functions.php:
remove_filter(‘the_content’, ‘wpautop’);
remove_filter(‘the_excerpt’, ‘wpautop’);
remove_filter(‘comment_text’, ‘wpautop’);
remove_filter(‘the_title’, ‘wpautop’);

and installing like 4 plugins didnt work for me.

<br>-tags still get removed when switching tabs/saving in visual editor.

Do you have any idea how to solve that problem? It really annoys me..

Cheers

Post count: 9544

Right with you there, seems to have gotten really bad last couple versions of wordpress. There might be bugtrac for this, but havent looked. I have been hoping next version of wp might fix this.

Post count: 9544

I guess its actually wptexturize.

Wordpress intentionally hides formatting to make it easier to write.

Some stuff i have been reading is to save in text mode, publish in text mode to keep the html.

Fir br tag i think there us a class called clear to keep br tag. Not yet tried.

Post count: 28

Saving in text mode is the only working way, but as soon as you jump back to the visual editor it deletes all the set breaks.

I am using like 4-5 breaks in each of my articles, so it’s more than just annoying but i got used to it.

Post count: 1291

Hi,

Yes we know about this but unfortunately i don’t know of any trick that may solve this, sorry.
Try to apply those filters/plugins on a default theme like Twenty Twelve and see if they work.

Thank you, Emil G.

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.