I know there are plugins that do this, but since my needs are so small, I’m hoping there’s another solution…
I want to edit the <hr />
style in the WordPress editor to have clear: both;
. Is there a way to do this in the functions.php or something?
@dalbeab already answered your question, but thought I would point out a way to add horizontal rule to your editor if you wish.
Within
functions.php
, you can add this:Then you will have a TinyMCE button that looks like this which will let you add an
<hr />
with only 1 click: