Customize Editor Styles

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?

Related posts

1 comment

  1. @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:

    // add horizontal rule button
    function enable_more_buttons($buttons) {
        $buttons[] = 'hr';
        return $buttons;
    }
    add_filter('mce_buttons', 'enable_more_buttons');
    

    Then you will have a TinyMCE button that looks like this which will let you add an <hr /> with only 1 click:

    enter image description here

Comments are closed.