The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

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


    # 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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed