Grow your CSS skills. Land your dream job.

How to add more buttons to wordpress visual editor.

  • # April 24, 2013 at 6:08 am

    Hi I m developing a theme from scratch and I want to add more buttons to the visual editor because by default it has only one row of buttons. I specially want to add h1, h2, h3 tags selectors (screenshots attached) but I m not able to get it. I used the code given in CSS-Tricks Snippets but it doesn’t give me h1, h2 but produces something else. How do I achieve this?
    Here is the screenshot http://mstoicthemes.com/test/headingbar.png

    Thanks.

    # April 24, 2013 at 9:42 am

    If you click the last button that will open whats called the kitchen sink which has extra options you can use.

    # April 24, 2013 at 10:09 am

    Oh Thanks never noticed that. I added one more code to keep it open by default.

    function unhide_kitchensink( $args ) {
    $args = false;
    return $args;
    }
    add_filter( ‘tiny_mce_before_init’, ‘unhide_kitchensink’ );

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".