SOFT
SPRINT

softsprint.net
shop

Change wp-admin admin panel styles in WordPress

Often there is a need to change the styles of the wp-admin admin panel in WordPress to fit your needs (or the needs of the client). Sometimes this involves writing custom plugins or editing existing ones, and sometimes you just need to solve visual layout problems due to conflicts between different installed plugins. Obviously, crawling into the core of WordPress and editing its native admin panel styles is unacceptable! For these purposes, there is a more elegant way – to describe the styles of the admin panel you need in the functions.php file of your theme.

Here is an example of code that hides unnecessary blocks in wp-admin WordPress:

1
2
3
4
5
6
7
8
9
10
11
<?php
add_action('admin_head', 'my_custom_styles');
 
function my_custom_styles() {
  echo '<style>
    #language, #seotitle, #seodesc, .column-language, .column-seotitle, .column-seodesc {
      display: none !important;
    } 
  </style>';
}
?>
CONTACT US
Cookies | Privacy Policy | Terms and ConditionsSoftSprint ©