Carbono Media crafts and implements digital solutions that drive the results our clients desire. Our small experienced team specialises in Website Design, Development, SEO, Copywriting, and Digital Marketing—making us your all-in-one destination for online excellence.

Call Us: 0412 102 865

Adding custom CSS to WordPress Admin

Custom CSS in Wordpress Admin

Customising the WordPress admin area’s appearance can significantly enhance the backend’s usability and aesthetics, especially for agencies and clients looking for a branded or streamlined experience. Here’s why you might want to apply custom styles to your WordPress admin area and how to do it efficiently.

Why Customise Admin Styles?

Branding the Backend

Branding the WordPress admin dashboard with company colours, logos, and styles offers a more personalised and professional interaction for clients or your agency. It’s about extending the visual identity to every touchpoint.

Hiding Unnecessary Elements

Simplifying the admin interface by hiding elements not needed by you or your clients can lead to a cleaner, more focused dashboard, enhancing productivity and reducing potential confusion.

Removing Licence Messages and Notifications

Licence messages and notifications can clutter the admin dashboard. Custom styles allow for a neater interface, free from unwanted distractions.

How to Implement Custom Admin Styles

To add custom styles to the admin area, add the following PHP code to your child theme’s functions.php file. This method injects a <style> tag into the head of your WordPress admin pages, allowing you to override default styles:

function admin_style() { echo '<style> /* Custom admin styles */ #wpadminbar { background-colour: #0041a5; } .button-primary { background-colour: #0041a5; border-colour: #003494; } #wpfooter, .update-nag { display: none; } /* Hide elements */ </style>';}add_action('admin_head', 'admin_style');

This snippet changes the top bar and primary button colours and hides the footer and update nags. Adjust these styles to fit your branding needs and preferences.

 


Always test your changes in a staging environment before going live to ensure they don’t negatively impact admin functionality or usability.

Previous
Next

ricky

Leave A Reply