Nexyta
Nexyta
  • home
  • pricing
    • web development
    • logo design
    • seo
    • WordPress Security
  • blog
  • contact us
     

How to Add a Custom Dashboard Logo in WordPress

  • September 7, 2016
  • Posted by: Sadman Sakib
  • Category: WordPress Tutorial
No Comments
Custom dashboard logo in wordpress.

Do you want to add a custom dashboard logo in WordPress? Often people replace WordPress logo with a custom dashboard logo for branding purposes. In this article, we will show you how to add a custom dashboard logo in WordPress for branding.

Method 1: Adding a Custom Dashboard Logo in WordPress Using a Plugin

This method is easier and recommended for most beginners.

First thing you need to do is install and activate the White Label CMS plugin.

Upon activation, you need to visit Settings » White Label CMS page and click on the Branding tab to expand it.

wlcms-branding

Next, you need to click on ‘Yes’ to hide the WordPress logo and then upload your own custom logo. The custom logo should be exactly 16 x 16 pixels in dimensions.

Don’t forget to click on the save changes button to store your settings.

custom-logo-dashbaord

Aside from custom dashboard logo, White Label CMS also offers other features to rebrand your WordPress installation. See our guide on how to white label the WordPress admin dashboard for detailed instructions.

Method 2: Manually Adding Custom Dashboard Logo in WordPress

This method is for users who are comfortable pasting code snippets in WordPress.

First you need to save your custom logo as custom-logo.png file on your computer. It needs to be exactly 16 x 16px in dimensions.

Once you have your custom logo ready, you need to upload it to /wp-content/themes/your-theme/images folder using FTP. If your theme does not have an images folder, then you need to create it.

After uploading you custom logo image, simply add this code to your theme’s functions.php file or a site-specific plugin.

01 function wpb_custom_logo() {
02 echo '
03 <style type="text/css">
04 #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
05 background-image: url(' . get_bloginfo('stylesheet_directory') . '/images/custom-logo.png) !important;
06 background-position: 0 0;
07 color:rgba(0, 0, 0, 0);
08 }
09 #wpadminbar #wp-admin-bar-wp-logo.hover > .ab-item .ab-icon {
10 background-position: 0 0;
11 }
12 </style>
13 ';
14 }
15  
16 //hook into the administrative header output
17 add_action('wp_before_admin_bar_render', 'wpb_custom_logo');

This code simply adds CSS required to display your custom logo in the WordPress admin bar.

That’s all we hope this article helped you learn how to add a custom dashboard logo in WordPress for branding.



dashboard logo wp custom logo

Leave a Reply Cancel reply

categories
  • Affiliate Marketing
  • Beginners Guide
  • HTML & CSS
  • Linux Guide
  • Marketing Tips
  • Photoshop
  • Security Tips
  • Technology
  • Toolkit
  • Tutorials
  • Uncategorized
  • Web Designing
  • WordPress Tutorial
  • Work-Life Improvement
how can we help you?

To receive more details or if you have a question or comment, contact us us at:

contacts
archive
Recent Posts
  • How to Easily Indent Paragraphs in WordPress
  • How to Display WordPress Photos in Columns and Rows
  • How to Add Password Free Login to WordPress Using Clef
  • How to Display Facebook Events on Your WordPress Site
  • 11 Ways to Get More Comments on Your WordPress Blog Posts

Get In Touch

Dhaka, Bangladesh.
Phone: +88019-664-43035
Mail: [email protected]
View Directions

Recent Posts

  • How to Easily Indent Paragraphs in WordPress February 3, 2017
  • How to Display WordPress Photos in Columns and Rows February 2, 2017

extra links

  • Home
  • News
  • Contacts

subscribe

Get latest updates and offers.

Copyright © 2022 <a href='/'>Nexyta</a> - All rights reserved.