Archived topic
Changing WordPress logo with website identity logo
3 replies · Started by Brain Overflow Sp. z o.o. on September 6, 2022
Hello.
As you may know, there is simple code snippet to replace WordPress logo on login page (/login.php) with custom one.
This approach requires providing a path to the logo image file. Is it possible to get that path from GeneratePress?
This is usually the same image file as one set in theme customizer in the site identity section.
This could also be a nice addition to GeneratePress to allow users to set login logo directly in Site identity section in customizer. :)
Hi there,
GP uses the core functions for saving the logo, and it can be returned using the get_custom_logo function.
See this users comment for getting the logo URL:
https://developer.wordpress.org/reference/functions/get_custom_logo/#comment-4992
Oh, I couldn't find that, thanks a lot :)
Glad to be of help