Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Joe Li
Joe Li
1,689 Points

Wordpress. When I hit 'enter' in text editor it doesn't create a new line???

Dear Wordpress Gurus,

Please help, this is driving me insane. In the post WYSIWYG when I hit enter, to create some spacing between elements it doesn't do anything.

I checked the inspector and it creates an empty <div> instead of a &nbsp;

What am I doing wrong?

Thanks in advance!

Joe

1 Answer

Konrad Traczyk
Konrad Traczyk
22,287 Points

Hi Joe,

First thing you should try is set any default theme you have, and disable all plugins, then selectively enable them to see which one causes the problem.

If you're developing theme then you have some function attached to filters which are fired before the_content() function outputs your WYSIWYG editor content.

You could also try hit shift+enter to make <br> tag instead of &nbsp, maybe that's easiest way to solve your problem.

Hope it helps,

Konrad