Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

How to display custom logo on WordPress login page

Change the code to:

function my_login_logo() {
    $site_id = get_current_blog_id();
?>
    <style type="text/css">
        body.login div#login h1 a {
            background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/Logo-B-Classic-<?php echo $site_id; ?>.jpg);
        }
    </style>
<?php }
add_action( 'login_enqueue_scripts', 'my_login_logo' );

Then, update the logo image file names to append the site ID accordingly to each different logo image file, for example Logo-B-Classic-21.jpg where ’21’ is the site ID.

Related Posts:

  1. Is there a is_user_logged_in() for multisite?
  2. Unable to login to new custom domain on multisite?
  3. share login/logout sessions across two installs?
  4. How to Login Once to an Entire WP Multisite Network
  5. Multisite – Redirect All Users to Subsite Home Page on Subsite Login
  6. WordPress Multisite Login Access
  7. Subdomain login problems
  8. WordPress Multisite local: wp-login.php refreshes on login Chrome Browser
  9. ‘Remote Login’ with MultiSite Domain Mapping still forcing users to login to all blogs individually?
  10. How to stay logged in on a multisite with different domains?
  11. Login on Multiple Sub-Domains without Multisite
  12. Fresh Multisite Install – Can’t Log In
  13. Auto Redirect after login
  14. WordPress MultiSite login to the respective site
  15. How to fix blocked cookies error that doesn’t let me log into wp-admin?
  16. Good way to block users within a multisite setup without deleting them?
  17. Automatically login user across multisite
  18. How can you override the is_multisite check in wp-login.php for individual login/registration?
  19. How to write RewriteRule for login in multisite
  20. Multisite Login problem
  21. Https and Http Login Issue on WordPress Multisite
  22. Different Domains in Multisite Setup
  23. Multisite infinite redirect loop
  24. Disable site visiting and user logins excepting for a specific user
  25. Infamous admin login redirect
  26. Is there something I need to know in order to use WordPress on foreign (Swedish) TLDs?
  27. Restrict users of site 1 to login in site 2 in wordpress multisite
  28. Unable to execute Ajax request, status code 400
  29. Moving from a non WordPress site to a WordPress Site – Login between both sites
  30. WordPress Multisite: Login to all subsites at once
  31. Multisite – site user limited only for this site
  32. Unable to sign in to network after moveing address but able to login into child sites
  33. User not staying logged into one of sub sites in multisite after SSL
  34. Single sign on to sub-sites in Multisite Network
  35. WordPress automatic Login on other page?
  36. how to make a cronjob run, when user needs to be logged in
  37. How to change a logo on a wordpress site that is part of a 7 site multisite?
  38. WordPress Network with SSL for multiple domains
  39. Why does this multisite redirection loop vanish when I add “www.”?
  40. One login for 3 WordPress installations with combined user table doesn’t work
  41. Multisite: Redirect Subsite Administrator to Subsite Home Page, Bypassing Dashboard
  42. Admin user getting redirected to /wp-admin/user
  43. How to login a user with wp_set_auth_cookie on a specific blog within a multisite environment
  44. Is it possible to create a login for restricted visibility?
  45. How do I combine wp_redirect and add_filter?
  46. Some Subdomains on a Multisite Install Not Found
  47. Common login for websites belonging in different networks
  48. Best Way to Setup a Network of WP Sites?
  49. WordPress Multisite restict user access
  50. Error Message when logging into WordPress on Xampp
  51. WordPress MU: Cookie error when trying to login on network WP instance
  52. something in database is causing me to not be able to log into network admin of multisite
  53. Can i merge 2 new WP_Query($variable) ‘s?
  54. How to reliably flush rewrite rules on multisite?
  55. Convert a Multisite WordPress install into a Single site
  56. Using wp_insert_post() with Networking enabled
  57. Sharing Dynamic Sidebars across Multisite Blogs
  58. Multisite: How to store global options vs. site options?
  59. Hide a theme on list of themes in wp-admin without editing core files
  60. WordPress Multisite Network installation and dev questions
  61. Turn off trackback/pingbacks and comments on all existing multisite sites
  62. My subsites accidentally went from one multisite network to another. How do I change it back?
  63. How to change a WordPress network domain
  64. Creating multisite in wordpress using php
  65. WordPress Multisite Sites show in Dropdown but not in Sites menu
  66. WP Multisite Static Frontpage
  67. Depth > 2 possible with multisite?
  68. What are Attributes used for in a WordPress Multisite?
  69. Redirecting non www to www ONLY for domain, subdomain without www
  70. WordPress Multisite Question
  71. Wrong Redirect/Rewrite Rules?
  72. Initiate multisite with blog_id outside of wordpress
  73. Show media-frame-menu on custom Media Frame
  74. How to run a WordPress site across multiple ccTLDs?
  75. How to get blog_id of an MU site when running a custom function on the parent site
  76. WordPress multisite domain
  77. WordPress multisite not work wp-admin
  78. How to install seperate theme on certain page
  79. Using Same User Database on Subdomain
  80. Multisite subdomain-site redirects to primary site
  81. Permission warning in wordpress multisite
  82. Static directories in a WordPress multisite network
  83. How to update wordpress content of wordpress multi-site subdomain
  84. How to post same content on multisite?
  85. Configure redirects with web.config
  86. Events Calendar Multisite 404 for events
  87. WordPress Database Cleanup
  88. Multisite – How sync posts to multi sites
  89. Optimal setup for Multi Domain WordPress with Woocommerce
  90. Blog switch wpml string translation (multi-site)
  91. Transfer Part of Multisite to new Domain
  92. Is there any way to give all users access to one blog in a multisite network without using a plugin?
  93. Some widgets on Multisite not showing up in template for particular theme
  94. In a loop, do not display content that does not have a thumbnail
  95. How to set an option for all sites in my Multisite network?
  96. Does the ‘init’ hook works for all sites in multisite?
  97. Non-super-admin users cannot access CPT even though I have explicitly added the capabilities to the user role
  98. Multisite Network Admin
  99. wordpress multisite set up on localhost, redirects to live site
  100. Media Attachment Pages Redirect to Media Files After Migrating to WordPress Multisite
Categories multisite Tags login, logo, multisite
Add class to woocommerce_before_shop_loop_item
Grouping custom wordpress post types by acf value

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress