Adding line breaks in WordPress, and stuff like that

Found a nice little plug-in today that gets rid of an annoyance in WordPress.

Normally, if you try to add extra vertical space, either by hitting enter in the visual editor or by adding <br /> tags in the HTML editor, WordPress just strips them out, so you have to do some extra work to get them to stay in. What I just found out about is a plugin called TinyMCE Advanced; one of the options in it is to turn off that behavior, which it does by replacing your <br /> tags with <p><br /></p>. Sure beats doing it by hand!

It also lets you add more buttons to your toolbars, for things like tables, non-breaking spaces, justification, etc. I’ll probably be coding a WordPress site for the charity that Brit does the website for in the next few weeks, so this should be a useful thing to throw in to make it easier for them to edit their own posts.

Leave a Reply

Your email address will not be published.