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

Show Site Name on WP login screen

The function you are looking for is get_bloginfo().

function wpse407167_custom_login_message( $message ) {

    $message="<p class="natz-login">Log in to " . get_bloginfo('name') . '</p><br>';
    return $message;
    
}
add_filter( 'login_message', 'wpse407167_custom_login_message', 99 );

Related Posts:

  1. Change the login button on the login page
  2. Custom ReCaptcha Login
  3. What is the proper way to apply the login_form_bottom filter?
  4. How to override wp-login.php
  5. Remove Links from Login page
  6. setting a specific home page for logged in users
  7. Change “logged in” link in (you must be logged in to post a comment)
  8. Redirect to requested page after (custom) login
  9. Customizing the default logout page of WordPress
  10. How do I remove the eye icon that shows visibility on login screen and reset password screen
  11. Custom Login and Registration form in Ajax
  12. Last time a user logged in
  13. How can I use get_bloginfo(‘admin_email’) in a custom PHP file?
  14. How can I allow access to multiple users, using the same login, at the same time?
  15. WordPress custom login page
  16. Adding a login form that concatenates three fields into a username
  17. Properly customizing login/register form
  18. How to add an extra variable to login and authenticate it?
  19. Login/Logout Session Sharing – Multiple WordPress Installations
  20. Custom login with external provider iframe and data object
  21. Deep customization of wp-login.php
  22. User can not login
  23. Lost password empty field error redirect to custom login
  24. Custom Log In Screen – Disable password recovery [duplicate]
  25. Multi-site User Sessions
  26. A truely custom login page?
  27. Switch between WordPress websites easy for an end user
  28. Lost password and back to blog in same line
  29. I w’d like to know If there are simple solutions to integrate other CMSs to wordpress
  30. Restrict content access to logged in users
  31. Custom login and registration forms
  32. URL and Site title outputting on Login page
  33. Is it possible to integrate a custom login feature with wordpress?
  34. How to change the login page without a plugin and not only customizing logo and text around the form?
  35. Removing “Failed” query argument upon successful login
  36. Validate user login in php
  37. how to change the url rediction of the woocommerce login page of the flatsome theme for my own in wordpress?
  38. How to change Login default blue admin color?
  39. Latest update broke my custom login CSS
  40. Trouble with custom login page
  41. Wrap WordPress Login Form in custom Div
  42. Custom login doesn’t stay
  43. Check get_post value after wp-admin login
  44. where can i find the login page in wordpress and add my header to it
  45. Change the default WordPress image on the dashboard login to a custom image [duplicate]
  46. Pass the post ID
  47. how to manage Session in WordPress using custom login?
  48. Redirect all pages to the custom login page except for the registration page
  49. How to stop login for SPECIFIC users BEFORE a specified date
  50. Must I rewrite the whole login form or can I jsut do a part
  51. How to: Easily Move a WordPress Install from Development to Production?
  52. Is there a flowchart for WordPress loading sequence?
  53. Essential technical features for high-end WordPress web hosting? [closed]
  54. How to remove admin menu pages inserted by plugins?
  55. How to put logs in WordPress
  56. How to get the Date Format and Time Format settings for use in my template?
  57. Where are Additional CSS files stored
  58. Best Practices for Regression Testing WordPress Websites?
  59. Remove wrapping div and ul from output of wp_nav_menu
  60. What Is The Use Of map_meta_cap Filter?
  61. get post author id outside loop
  62. Custom Walker: how to get ID in function start_lvl
  63. Creative uses of WordPress [closed]
  64. How to *remove* a parent theme page template from a child theme?
  65. How do I make my child theme re-apply the settings that were customised when its parent was active?
  66. get_template_directory() vs bloginfo( ‘template_directory’ ) vs TEMPLATEPATH
  67. Multiple Inputs in a Customizer Control
  68. New WP_Customize API – how does it work under the hood?
  69. Embedding a SOAP Client into a WordPress Plugin?
  70. Is there anything that Joomla or Drupal can do that can’t be done in WordPress? [closed]
  71. Update widget form after drag-and-drop (WP save bug)
  72. Data sanitization: Best Practices with code examples
  73. How to benchmark a WordPress installation? [closed]
  74. Should I delete the default themes?
  75. Moving WP install from local to live, what about wp_posts GUID?
  76. Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn’t work
  77. Running Gutenberg React in Development Mode
  78. Prevent WordPress from automatically installing a new theme each year
  79. Can we use one WordPress installation for multiple databases, domains and content directories
  80. Is there a blank theme framework compatible with WP 3.0? [closed]
  81. Plugin SVN & update API – how are plugins identified?
  82. Users with custom roles not showing in post author select box
  83. How to use more than 256MB of memory in the admin?
  84. How do register_sidebar() and get_sidebar() work together?
  85. How do you get formatted content of a post using the WordPress API?
  86. Localization: I want the backend: english and frontend in defined language
  87. Are there any forks of WordPress (and what is different about them)?
  88. How to Change 404 page title
  89. Make Custom Metaboxes Collapse by Default
  90. WordPress Paginate $wpdb->get_results
  91. Custom maintenance page
  92. Add button to TinyMCE bar without creating a plugin
  93. Why do I get the timeout warning?
  94. How to add a new product type on woocommerce product types? [closed]
  95. How to include own css on wordpress tinymce editor?
  96. How to disable page delete
  97. Adding extra authentication field in login page
  98. add button to post edit page when post_status=publish
  99. how to override woocommerce specific loop or archive-product.php [closed]
  100. Modify existing plugin function using filter (without modifying the plugin directly)
Categories customization Tags bloginfo, customization, login
Block pattern conflict with custom block
How to disable edit post option? [closed]

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