Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Login page logo #1433049

    Thanks, i was able to modify with this code in function.php. But i was wondering, if the theme get update, will it replace the function.php file?

    /* Replace wp-login logo */
    function login_page_logo(){
    $site_url = home_url(); // URL of site
    echo ‘<style>.login h1 a {
    background-repeat: no-repeat;
    background-image: url( ‘ . $site_url . ‘/wp-content/uploads/2024/01/U-NEXT-logo-noir-transparent-300×137.png );
    background-position: center center;
    background-size: contain !important;
    width: 100% !important;
    }
    </style>’;
    }
    add_action(‘login_head’, ‘login_page_logo’);

    /* Replace wp-logo link */
    function login_page_URL( $url ){
    $url = home_url(‘/home’);
    return $url;
    }
    add_filter(‘login_headerurl’, ‘login_page_URL’);

Viewing 1 post (of 1 total)