Toolbar customization

From MozillaZine Knowledge Base
Revision as of 08:05, 20 June 2007 by Mozcerize (talk | contribs) (→‎Customizing the toolbar buttons: changed download URL for Toolbar Enhancements extension)
Jump to navigationJump to search

It is very easy to customize the layout of the toolbars in Firefox. You can add or remove buttons, and change their placement. The Firefox windows are individually customizable and have different sets of icons that you can add to or remove from each. If your customizations reset themselves, see this article.

Customizing the toolbar buttons

To customize a toolbar, open the window that you want to customize, and then go to the "View" menu and select "Toolbars -> Customize"; alternatively, right-click on the toolbar and select "Customize". The Customize Toolbar dialog will then pop up. To remove a button, simply drag it from the toolbar down into the Customize Toolbar dialog. To add a button, drag it up from the Customize Toolbar dialog and place it on the toolbar. If you want, you can even put buttons up on the menu toolbar.

The Toolbar Enhancements extension allows for even greater customization. It is currently available only for Firefox 1.0.x, but a third-party version for Firefox 1.5 and 2 is available (through a link at the bottom of that developer-oriented page). This extension provides many more buttons for the standard Firefox features, allows toolbars to be placed in many positions around the windows, and allows buttons to be placed to either side of the Status Bar.

Warning: it is not recommended to remove "Bookmark Toolbar Items" from the toolbars. If you don't need it just hide the Bookmarks Toolbar.

Adding buttons provided by extensions

Some Firefox extensions provide extra toolbar buttons as part of their functionality. Installing an extension does not automatically put its buttons on the toolbar, however. To add these buttons, you should do as described above for adding buttons to the toolbar.

Reducing the padding around the toolbars

To make the toolbars use less space you can reduce the padding around the buttons. Add the following code to your userChrome.css file (but note that this may also affect toolbars supplied by extensions).

   /* Remove extra padding from the Navigation Bar and other toolbars*/
   .toolbarbutton-1, .toolbarbutton-menubutton-button {
      padding: 2px 3px !important;
   }
   .toolbarbutton-1[checked="true"], .toolbarbutton-1[open="true"],
   .toolbarbutton-menubutton-button[checked="true"],
   .toolbarbutton-menubutton-button[open="true"] {
      padding: 4px 1px 1px 4px !important;
   }
   /* Remove extra padding from the Status Bar,
      introduced by the Toolbar enhancements extension */
   #tbx-bottom-toolbox {
      border-top-width: 0 !important;
   }

Changes lost on startup

Toolbar customizations reset on startup