How to change the WordPress admin design

In my Vkontakte group I was asked a question, how to change the design of the WordPress CMS admin panel. I think the official guide will help me with this question, as always., let's get started together.

By visiting the site Codex WordPress as always, I realized that there is no Russian translation of this question, which means we start translating and looking for different articles on this topic.

I will try to offer my version of changing the appearance of the admin panel.

So, based on the same Khukov which I already wrote about in the section "For plugin development» you can painlessly change the design of the admin panel. Since hooks can be used in your own plugins, I decided to create some basic code for you., and you will find out exactly how and what, you are my smarties ).

Let's Start Creating a WordPress Admin Theme Plugin

We will work with this hook add_action(‘admin_head’, ‘my_admin_head’). To start create a folder on your test site in the plugins folder wp-admin-themmes and file wp-content/plugins/wp-admin-themmes/my-admin-themes.php. Put the base code of the plugin into the file:

In general, the plugin is now ready for us. Next, go to the admin panel of our site and activate the created plugin My Admin Theme. After activation, the created plugin will help you customize the admin panel styles through the plugins folder.

Create another file in the plugin folder wp-admin.css and add any of the example codes below:

Admin Styles

#wp-admin-bar-site-name – The main style for displaying the site name or a link to view the site in the admin bar ( #wp-admin-bar-site-name).
Trying the style and watching the admin panel:

#adminmenuback, #adminmenuwrap – Changing the background of the first level menu in the admin panel

Trying Styles and Watching the WordPress Admin:

#the adminmenu – The second level of the menu in the admin panel.

Trying the style and watching the admin panel:

#wpwrap - Change the background in the admin panel

Trying the style and watching the admin panel:

#footer – Change the footer of the WordPress admin.

Example:

 

#wpbody h2 - change the titles on each page in the admin.
Example:

I think you can change, simply by inspecting certain elements.

You can also copy standard WordPress admin styles and change them inside platinum, they are in the folder here: /wp-admin/css. Copy to the plugin folder and change the admin panel as you like.

Here is my result of working with the plugin we created:

Как поменять дизайн админки WordPress stylize wordpress adminpanel

Developers CMS WordPress also recommend the plugin WP Admin Theme to change the appearance of the engine.

Another little bonus in the article:

You can slightly change the footer in the admin panel with a special hook:

Code checked, everything is working. Good luck developing WordPress sites!


Buy WordPress hosting
/* WordPress tutor
Online tutoring services. List of courses I teach
  • Basic web design course;
  • Site layout;
  • General course on CMS WordPress and continuation of the course on template development;
  • Website development in PHP.
Read more on the page WordPress tutor
*/

Nikolaenko Maxim

Director of web studies ProGrafika. I am developing, website design and promotion. Always glad to new blog readers and good clients.


You may also like...

2 Responses

  1. Developer says:

    Thank you for the article, you helped a lot. Is it possible to change the admin html code?

    • found examples, but they were made in javascript, think,
      that it is not necessary to change the source codes. When changing the main code, you can lose your admin template, when will the engine be updated?.

      As an option, you can look towards WordPress hooks, but only in English. find something useful, Throw or if you find something that you do not understand, but this 100% works, we'll figure it out together. Just not everything )

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Templates for WordPress
The best hosting in Ukraine
Stable hosting for Drupal