Aleš Sýkora wrote

Custom WordPress login logo

15. 1. 2021 in

Would you like to have your brand logo instead of default WordPress logo at your login page? Use this snippet in your custom funcionality plugin or in code snippets etc.

This snippet changes the default logo and add link to the homepage. It also add custom Title for mouse hover over the logo.

function login_logo() { ?>
    <style type="text/css">
        #login h1 a, .login h1 a {
            background-image: url(; /*logo image URL*/
<?php }
add_action( 'login_enqueue_scripts', 'login_logo' );

function login_logo_url() {
    return home_url();
add_filter( 'login_headerurl', 'login_logo_url' );
function login_logo_url_title() {
    return 'Your website name'; //Title for your logo image
add_filter( 'login_headertitle', 'login_logo_url_title' );

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Basic SEO plugin with Toolset Types & Types Fields API
29. 9. 2018 in
Make your own SEO plugin with Toolset Types. No need to install any additional SEO plugins. Read our tutorial and make your own today!
Read More
Aleš Sýkora wrote
Current Year for Copyright in WordPress and Oxygen Builder
Would you like to insert the Copyright information in footer of your website with current year? Use the PHP function Date() with format Y for current year. Normally it looks like: In Oxygen Builder you can use the Dynamic data > PHP function return value, which generates this shortcode:
Read More
Aleš Sýkora wrote
Get a grandparent post ID from a shortcode
1. 7. 2019 in
This simple shortcode will allow you to get that grandparent post ID without the need for additional Content Templates or Views.
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram