Skip to content
Hoolite.be
  • Home
  • Tutorials
  • Downloads
  • Contact
Hoolite.be
  • Home
  • Tutorials
  • Downloads
  • Contact

How to Change the Login Logo URL in WordPress: A Step-by-Step Tutorial

Posted on February 2023

When you replace the default WordPress logo on your login page with your own custom logo, the logo will still link to the WordPress.org website by default. If you want the logo to link to a different URL, such as your site’s homepage, you can easily change the login logo URL in WordPress. In this tutorial, we will show you how to change the login logo URL using a simple code snippet.

Step 1: Access your theme’s functions.php file

To change the login logo URL, you need to add a new code snippet to your theme’s functions.php file. If you haven’t already changed your login logo in WordPress, you can follow our previous tutorial on how to change the default login logo for WordPress. Once you have replaced the default logo with your own custom logo, you can continue with the steps below to change the logo URL.

You can access the functions.php file by logging into your WordPress dashboard, navigating to Appearance > Theme Editor, and selecting the functions.php file.

Step 2: Add the code to your functions.php file

To change the login logo URL, you need to add the following code to your theme’s functions.php file:

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

This code adds a new function called “custom_login_url()” which returns your site’s homepage URL using the “home_url()” function. The function is then added to the “login_headerurl” filter hook, which replaces the default WordPress.org URL with your site’s homepage URL.

Step 3: Save the changes

Once you have added the code to your functions.php file, click on the “Update File” button to save the changes.

Step 4: Check your login page

You can now check your login page to see if the logo URL has been updated. Click on the logo to make sure it links to the correct URL.

Changing the login logo URL in WordPress is a simple process that can be completed with just a few lines of code. By following the steps outlined in this tutorial, you can easily replace the default WordPress.org URL with your site’s homepage URL. If you haven’t already changed your login logo in WordPress, you can follow our previous tutorial on how to change the default login logo for WordPress. Once you have replaced the default logo with your own custom logo, you can continue with the steps above to change the logo URL. We hope you found this tutorial helpful!

🎉 Sharing is fun!

Support 🐶

If you found this article helpful, got a question or spotted an error/typo... Do well to leave your feedback in the comment section or help spread it by sharing this article. If you're feeling generous (and I hope you do) you can definitely help me by getting me a cup of coffee ☕.

Filed under: WordPress


You may like these too!

wordpress

How to Fix “Scrape Key Check Failed” Error in WordPress Theme Editor

The WordPress theme editor is a powerful tool that allows you to customize your website's theme without editing code directly. However, sometimes when trying to…

wordpress

How to Enable Maintenance Mode in WordPress: A Step-by-Step Guide with Code Snippets

If you're planning to update your WordPress site or perform any major changes, enabling maintenance mode is a smart way to minimize any disruptions to…

wordpress

How to Display a List of Child Pages on a Parent Page in WordPress: A Step-by-Step Guide

Displaying a list of child pages on a parent page in WordPress can be useful for creating navigation menus, displaying related content, or simply providing…

Leave a Reply Cancel reply

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

Recent Posts

  • How to Fix “Scrape Key Check Failed” Error in WordPress Theme Editor
  • How to Enable Maintenance Mode in WordPress: A Step-by-Step Guide with Code Snippets
  • How to Display a List of Child Pages on a Parent Page in WordPress: A Step-by-Step Guide
  • How to Customize the “Read More” Text in WordPress Excerpts for Better User Experience and SEO
  • How to Add a Vimeo Background Video to Your WordPress Site: A Step-by-Step Guide
  • How to Change the Default WordPress Excerpt Length for Better Content Control

© 2023 | With 💗  and ☕  Hoolite.be

Cookies are used to count pageviews and show ads. That's it! However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie Settings🍪 Nomnom!
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-advertisement1 yearSet by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Advertisement" category .
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
PHPSESSIDsessionThis cookie is native to PHP applications. The cookie is used to store and identify a users' unique session ID for the purpose of managing user session on the website. The cookie is a session cookies and is deleted when all the browser windows are closed.
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
__gads1 year 24 daysThe __gads cookie, set by Google, is stored under DoubleClick domain and tracks the number of times users see an advert, measures the success of the campaign and calculates its revenue. This cookie can only be read from the domain they are set on and will not track any data while browsing through other sites.
_ga2 yearsThe _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors.
_ga_BD9Q0XFBF82 yearsThis cookie is installed by Google Analytics.
_gat_gtag_UA_23883327_11 minuteSet by Google to distinguish users.
_gid1 dayInstalled by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website's performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
CookieDurationDescription
IDE1 year 24 daysGoogle DoubleClick IDE cookies are used to store information about how the user uses the website to present them with relevant ads and according to the user profile.
test_cookie15 minutesThe test_cookie is set by doubleclick.net and is used to determine if the user's browser supports cookies.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT
Powered by CookieYes Logo