Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to add more buttons to wordpress visual editor.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #44331
    ghafirsayed
    Member

    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.

    #133018
    SgtLegend
    Member

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

    #133020
    ghafirsayed
    Member

    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)
  • The forum ‘CSS’ is closed to new topics and replies.