Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress visual editor not making line breaks

Tags:

html

wordpress

This should be very simple, i can not believe that a company the size of Wordpress cannot provide users a very simple way to make line breaks.

I know how to use the text tab and code the page using html (im a developer). However my clients have absolutely no idea what html is so they obviously can not use it.

All the client wants to do is make a "space between lines" , in our terms a break line. They only want to use the visual editor.

Now when they start typing and hit enter, it creates & nbsp; or closes a paragraph tag.

Many articles are saying that shift + enter will make one, however this 100% does not as ive tried.

Ive tried a plugin that most articles are suggesting called "tinymce advanced". But this does not resolve the problem.

Is there any way possible for a normal user with no html knowledge to only use the visual editor and create br lines without actually using code?

like image 880
Matthew Smart Avatar asked Aug 04 '15 09:08

Matthew Smart


1 Answers

Holding down Shift+Enter definitely works.

Alternatively, you can always prevent Wordpress from automatically adding <p> tags to the markup using the following code inside of your theme's functions.php file:

remove_filter('the_content', 'wpautop');
like image 108
BenM Avatar answered Sep 28 '22 17:09

BenM