• Pricing
  • Help
  • My Account
  • Download
WP Ghost
  • Pricing
  • Help
  • My Account
  • Download

Change or Remove Login Logo Link

/Developers /Hooks /Change or Remove Login Logo Link
wp-login page logo
Table of Contents
  • Accessing the Theme’s Functions File
    • Via WordPress Admin Dashboard:
    • Via FTP or File Manager:
  • Changing the Logo Link
    • Explanation:
  • Changing the Logo Alt Text
    • Explanation:
  • Save Changes
  • Verify Changes
  • Additional Tips

WordPress, by default, displays its logo on the login page, and this logo links to the official WordPress website. However, you might want to customize this link to redirect to your website’s homepage or another specific page.

This tutorial will guide you through the process of changing the link on the login page logo using hooks. We’ll also cover how to change the alt text of the logo to display your site’s name.

Accessing the Theme’s Functions File

First, you need to access your theme’s functions.php file. This file allows you to add custom PHP code to your theme.

Via WordPress Admin Dashboard:

  • Navigate to Appearance > Theme Editor.
  • In the Theme Files list on the right, find and click on functions.php.

Via FTP or File Manager:

  • Use an FTP client or your web host’s file manager to navigate to wp-content/themes/your-theme/.
  • Open the functions.php file for editing.

Changing the Logo Link

To change the link of the login page logo from WordPress.org to your site’s homepage, you need to use the login_headerurl filter. Add the following code to your functions.php file:

// Changing the logo link from wordpress.org to your site
function mb_login_url() {
    return home_url();
}

add_filter('login_headerurl', 'mb_login_url');

Or, if you want to remove the link:

add_filter('login_headerurl', '__return_false');

Explanation:

  • mb_login_url: This function returns the URL of your site’s homepage using the home_url() function.
  • add_filter('login_headerurl', 'mb_login_url'): This line applies the mb_login_url function to the login_headerurl filter, changing the logo link.

Changing the Logo Alt Text

Next, to change the alt text of the login page logo to display your site’s name, use the login_headertitle filter. Add the following code to your functions.php file:

// Changing the alt text on the logo to show your site name
function mb_login_title() {
    return get_option('blogname');
}

add_filter('login_headertitle', 'mb_login_title');

Explanation:

  • mb_login_title: This function returns the site name by retrieving the blogname option from your site’s settings.
  • add_filter('login_headertitle', 'mb_login_title'): This line applies the mb_login_title function to the login_headertitle filter, changing the alt text of the logo.

Save Changes

After adding the above code to your functions.php file, save the changes. If you are using the Theme Editor, click the Update File button. If you are using an FTP client or file manager, upload the modified functions.php file back to your server.

Verify Changes

To ensure that the changes have been applied correctly:

  1. Log out of your WordPress admin dashboard.
  2. Navigate to your login page (typically found at yourdomain.com/wp-login.php).
  3. Verify that the logo now links to your homepage and that the alt text displays your site’s name.

Additional Tips

Custom Login Page Plugins: Consider using a custom login page plugin for more extensive customizations. Plugins like LoginPress offer a user-friendly interface for modifying the login page.

Tagged: remove wordpress login logochange wp-login logo

Related Articles

  • Stop Plugin Auto Update Check

  • Adding a Custom CMS Simulator

  • WP Ghost Constants in wp-config.php

  • Change Paths in Admin Dashboard

  • Add Files to “Hide WordPress Common Files”

  • Customize hmwp_logged_in_admin and hmwp_logged_in_login

WP Ghost - Best Practice

Learn how to set up WP Ghost in Ghost Mode and activate all the security features you need for a stronger and safer website.

Most Popular

  • Change and Hide wp-admin Path with WP Ghost
  • WP Ghost Compatibility Plugins List
  • Setup WP Ghost on Nginx Server
  • Set AllowOverride all on Apache Servers
  • Theme Not Loading Correctly and Website Loads Slower
  • Lesson 3 – Hide Your Site From Theme Detectors and Hackers Bots
  • Lesson 1 – Customize Paths with WP Ghost
  • Change admin-ajax.php Path with WP Ghost
  • Firewall and Security
  • How To Change File Permissions in WordPress
  • Change plugins Path with WP Ghost
  • Brute Force Attack Protection
  • WP Ghost Settings – Best Practice
  • Change REST API Path with WP Ghost
  • Change and Hide wp-login Path with WP Ghost
  • Redirects
  • Change wp-content Path with WP Ghost
  • What is WP Ghost?
  • Two-Factor Authentication
  • Brute Force Protection in Elementor Login Forms
  • Change wp-register Path with WP Ghost
  • Disable Right-Click and Keys
  • Hide wp-admin And wp-login.php From Source Code
  • WP Ghost Compatibility Themes List
  • Website Security Check
  • Install WP Ghost Lite Plugin
  • Change author Path and Hide ID with WP Ghost
  • Temporary Logins
  • Change Paths In Cached Files
  • Setup WP Ghost on Nginx Web Server With Virtual Private Server

Recommended

  • What is WP Ghost?
  • Changelog
  • Plugin Best Practice
  • Plugin Compatibility
  • Theme Compatibility

Categories

  • Change Paths
  • Firewall
  • Temporary Login
  • Two Factor
  • Brute Force
  • Events Log

Company

  • Affiliate
  • Media Kit
  • Terms Of Use
  • Privacy Policy
  • Contact

Useful

  • Hack Attack Types
  • Key Security Features
  • Security Features
  • Free vs PRO
  • Why WP Ghost
  • Pricing
  • Facebook
  • YouTube
  • X
© WP Ghost 2016-2025