Skip to content

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy
Wordpress

WordPress: Customize Login Page for Branding

- 24.06.26 - ErcanOPAK

🎨 Professional Login Page for Clients

Default WordPress login looks generic. Custom login page shows your brand. Logo, colors, background — professional impression.

📝 Custom Login CSS

// functions.php
function custom_login_logo() {
    echo '<style>
        body.login {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .login h1 a {
            background-image: url(' . get_stylesheet_directory_uri() . '/images/logo.png);
            background-size: contain;
            width: 200px;
            height: 80px;
        }
        .login form {
            background: rgba(255,255,255,0.95);
            border-radius: 16px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.2);
            padding: 30px;
        }
        .wp-core-ui .button-primary {
            background: #667eea;
            border-color: #667eea;
        }
        .wp-core-ui .button-primary:hover {
            background: #764ba2;
            border-color: #764ba2;
        }
        .login #nav a,
        .login #backtoblog a {
            color: white !important;
        }
    </style>';
}
add_action('login_enqueue_scripts', 'custom_login_logo');

function custom_login_logo_url() {
    return home_url();
}
add_filter('login_headerurl', 'custom_login_logo_url');

🎯 Custom Login Message

function custom_login_message() {
    return '<p style="text-align:center; color:#fff; margin-top:20px; font-size:14px;">Welcome to Client Portal</p>';
}
add_filter('login_message', 'custom_login_message');

// Remove WordPress version from login
function remove_version_from_login() {
    remove_action('login_head', 'wp_shake_js', 12);
}
add_action('login_head', 'remove_version_from_login');

💡 Pro Tips

  • Use client logo for branded experience
  • Match colors to client brand
  • Add client name to login page
  • Remove WordPress branding for white-label

“Client login page now shows their logo. Professional impression. Small change, big impact on client perception.”

— Agency Owner

Related posts:

WordPress — Admin AJAX Causing High CPU Usage

Disable Emojis Without Plugins

WordPress REST API: Turn Your Site into a Headless CMS for React/Vue Apps

Post Views: 3

Post navigation

Photoshop: Use Content-Aware Scale to Resize Images Without Distortion
Kubernetes: Use DaemonSets to Run Pods on Every Node

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

July 2026
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Jun    

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (960)
  • How to add default value for Entity Framework migrations for DateTime and Bool (898)
  • How to make theater mode the default for Youtube (857)
  • Get the First and Last Word from a String or Sentence in SQL (840)
  • How to select distinct rows in a datatable in C# (814)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (597)
  • Add Constraint to SQL Table to ensure email contains @ (582)
  • Average of all values in a column that are not zero in SQL (545)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (512)
  • Find numbers with more than two decimal places in SQL (460)

Recent Posts

  • C#: Use Using Statements for Resource Management
  • C#: Use Lambda Expressions for Concise Code
  • SQL: Use GROUP BY for Data Aggregation
  • .NET Core: Master Routing for Clean URLs
  • Git: Use Reset to Undo Local Changes
  • Ajax: Use Axios for HTTP Requests
  • JavaScript: Understand Hoisting
  • HTML: Use Web Storage for Client-Side Data
  • CSS: Use Filter Effects for Visual Magic
  • Windows 11: Unlock God Mode for All Settings

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (960)
  • How to add default value for Entity Framework migrations for DateTime and Bool (898)
  • How to make theater mode the default for Youtube (857)
  • Get the First and Last Word from a String or Sentence in SQL (840)
  • How to select distinct rows in a datatable in C# (814)

Recent Posts

  • C#: Use Using Statements for Resource Management
  • C#: Use Lambda Expressions for Concise Code
  • SQL: Use GROUP BY for Data Aggregation
  • .NET Core: Master Routing for Clean URLs
  • Git: Use Reset to Undo Local Changes

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com