Skip to content
WPCode Library

WPCode Library

Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!

Get WPCode
See all Features

  • Features
    • Code Snippets Library
    • Smart Conditional Logic
    • Advanced Code Revisions
    • Private Cloud Library
    • Marketing Scripts & Conversion Pixels
  • Pricing
  • Snippets Library
  • Help Center
    • Docs
    • Support
  • Blog
  • Login
  • Get WPCode

Snippets library

Browse Snippets
Claim your Free Profile
Add Snippet

Tag: logo

Replace WP Logo and the default ‘logo’ link

add_filter(‘login_head’, function () { $custom_logo = ‘https://i.imgur.com/0qxSpsL.png’; // Replace the image url $logo_width = 200; // Replace the width and height accordingly $logo_height = 80; echo ‘ ‘; }, 990); add_filter( ‘login_headerurl’, function () { return ‘https://example.com’; // Replace the…Continue reading

Replace WordPress Logo on Login Page damore

add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://damore.nl/wp-content/uploads/2024/02/logo-damore-admin.png’; $logo_width = 300; $logo_height = 101; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…Continue reading

Replace WordPress Logo on Login Page

add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://westlinemarketing.com/wp-content/uploads/2024/11/Westline-Horiz.-Logo-dark-Bl-Gr-Wh.svg’; $logo_width = 300; $logo_height = 100; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…Continue reading

Replace WordPress Logo on Login Page

add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://www.benefitscore.org/wp-content/uploads/2024/10/512×512-file-favi.svg’; $logo_width = 84; $logo_height = 84; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…Continue reading

Custom Logo Per Page

add_action(‘add_meta_boxes’, function() { add_meta_box( ‘custom-logo-metabox’, ‘Custom Logo’, function($post) { // Add a nonce field so we can check for it later wp_nonce_field(‘custom_logo_meta_box’, ‘custom_logo_meta_box_nonce’); // Retrieve the existing value from the database $custom_logo_id = get_post_meta($post->ID, ‘_custom_logo_id’, true); $custom_logo_url = $custom_logo_id ?…Continue reading

Changing the logo on the WordPress login page.

// Zmiana logo na stronie logowania WordPress. add_filter( ‘login_head’, function () { $custom_logo = ‘https://yourimageurl.com’; $logo_width = 200; $logo_height = 84; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height ); }, 990 );Continue reading

Replace WordPress Logo on Login Page

add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://wpcode.com/wp-admin/images/wordpress-logo.svg’; $logo_width = 84; $logo_height = 84; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…Continue reading

Replace WordPress Logo on Login Page

add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://netzinformatique.fr/assets/images/logo-k-586×748.png’; $logo_width = 84; $logo_height = 84; printf( ‘.login h1 a {background-image:url(%1$s) !important; margin:0…Continue reading

Minimalistic Admin Bar

function replace_admin_bar_text() { global $wp_admin_bar; $wp_admin_bar->add_node(array( ‘id’ => ‘site-name’, ‘title’ => __(”), )); $wp_admin_bar->add_node(array( ‘id’ => ‘my-account’, ‘title’ => ‘👤‘, ‘href’ => get_edit_profile_url(), )); } add_action(‘wp_before_admin_bar_render’, ‘replace_admin_bar_text’, 0); function remove_wp_logo() { global $wp_admin_bar; $wp_admin_bar->remove_menu(‘wp-logo’); } add_action(‘wp_before_admin_bar_render’, ‘remove_wp_logo’, 0); function remove_comments()…Continue reading

Replace WordPress Logo on Login Page

add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://310.live/wp-content/uploads/2022/11/cropped-office-building.png’; $logo_width = 84; $logo_height = 84; printf( ‘.login h1 a {background-image:url(%1$s) !important; margin:0…Continue reading

Page navigation

1 2 Next

Company

  • About
  • Careers
  • Testimonials
  • Blog
  • Affiliates
  • Contact
  • Twitter
  • Facebook

Powerful Code Features

  • Ready-made Snippets Library
  • Smart Conditional Logic
  • Advanced Auto-insert Locations
  • Global Header & Footer Scripts
  • Safe Error Handling
  • WordPress Code Generators

  • Ecommerce Conversion Pixels
  • Dynamic Content Elements
  • Reduce Number of Plugins
  • Save Snippets in Cloud
  • Easy Code Management
  • Advanced Code Revisions

Helpful Links

  • Support
  • Documentation
  • Plans & Pricing
  • WordPress Hosting
  • Start a Blog
  • Make a Website

Copyright © 2025 WPCode. WPCode® is a registered trademark of WPCode, LLC

Terms of Service
Privacy Policy
FTC Disclosure
Sitemap
WPCode Coupon

The WordPress® trademark is the intellectual property of the WordPress Foundation. Uses of the WordPress®, names in this website are for identification purposes only and do not imply an endorsement by WordPress Foundation. WPCode is not endorsed or owned by, or affiliated with, the WordPress Foundation.

Snippet Preview