Skip to content

Customizing the admin

gyrus edited this page Jul 30, 2012 · 3 revisions

Configuration constants

Check the configurable constants in functions.php for globally activating or deactivating comments, categories, tags, etc. Setting any of these to false will remove their interface elements from the admin.

CSS tweaks

Add CSS for the admin to css/wp-admin.css.

Useful classes

  • .warn-if-changed - Add this to forms that should give the user a warning if they try to navigate away from the page with unsaved changes. Note that if your form has hidden fields that are changed via JS, you need to manually fire the change event for them for this to work.

Login

To customize the login page, uncomment the hook for pilau_login_styles_scripts(). Then edit css/wp-login.css - example CSS for changing the logo is included.

TinyMCE

Check out pilau_tinymce_buttons() to change the default buttons available.

See also:

Admin menus