• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Baguiowebs

Baguiowebs

Learn WordPress. Build Your Own Site.

  • Contact
  • Build a Site
  • WP Training
  • Library
  • Signup
  • Login
  • Contact
  • Build a Site
  • WP Training
  • Library
  • Signup
  • Login

How to Rebrand the Admin Bar WP Logo

Hi, Login
X

Join Us Forgot Password?

to view this video. Not a member? Join Now!

This code snippet goes in your functions.php file and replaces the ‘W‘ WordPress logo with your own 27×27 pixel transparent image.

/* Rebrand the Admin Bar WP Logo */
add_action('wp_before_admin_bar_render', 'no_wp_logo_admin_bar_remove', 0);
function no_wp_logo_admin_bar_remove($wp_admin_bar) {
    ?>
        <style type="text/css">
            #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
                content: url(YOUR IMAGE URL HERE)   !important;
                top: 2px;
            }
            #wpadminbar #wp-admin-bar-wp-logo > a.ab-item {
                pointer-events: none;
                cursor: default;
            }  
        </style>
    <?php
}

In the code snippet there is a place between an open and close parenthesis that has the words ‘Your Image URL Here‘. Replace that text with the URL of your image as shown in the video.

For example, the image url should look like this:

content: url(https://baguiowebs.com/images/login-logo.png) !important;

Filed Under: WP Theme Customization

Primary Sidebar

Section 6

WP Theme Customization

Introduction

  • Before We Customize3:49min
  • How To Create A Child Theme4:49min

Shorcodes

  • Personal Greeting Shortcode3:22min
  • Flex Date Shortcode5:45min

Theme Customization Tuts

  • Remove URL Underline4:54min
  • Remove Incorrect Login Shake1:39min
  • Rebrand Admin Bar WP Logo2:46min
  • Remove Top White Space1:33min
  • Adjust Gap Between Posts on Homepage1:55min
  • Add Border Below Header2:19min
  • Customize Site Description2:16min
  • Customize Site Title2:17min
  • Random Admin Announcement4:47min
  • Add Drop-Down Menu To Admin Bar3:59min

Copyright © 2021 Baguiowebs. All Rights Reserved.

  • About
  • Disclaimer
  • Privacy Policy
  • Terms