[Support request] Changing WordPress logo with website identity logo

Home Forums Support [Support request] Changing WordPress logo with website identity logo

Home Forums Support Changing WordPress logo with website identity logo

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2334656
    Brain Overflow Sp. z o.o.

    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. ๐Ÿ™‚

    #2334693
    David
    Staff
    Customer Support

    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

    #2334775
    Brain Overflow Sp. z o.o.

    Oh, I couldn’t find that, thanks a lot ๐Ÿ™‚

    #2334784
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.