Created
January 11, 2025 08:07
-
-
Save Lego2012/1a16ec3469e7ad2a9825707d874c7073 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Ein neues Logo für den Adminbereich und eine eigene Hintergrundfarbe | |
| // @author Andreas Hecht | |
| // https://www.drweb.de/wordpress-snippets/ | |
| function ah_login_logo() { | |
| ?> | |
| <style type="text/css"> | |
| #login h1 a, .login h1 a { | |
| background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/dein-logo.png); | |
| margin-bottom: 0; | |
| background-size: 180px; | |
| height: 180px; | |
| width: 180px; | |
| margin-left: auto; | |
| margin-right: auto; | |
| border-radius: 50%; | |
| } | |
| body.login {background-color: #0073bf;} .login #backtoblog a, .login #nav a {color: #fff !important} | |
| </style> | |
| <?php } | |
| add_action( 'login_enqueue_scripts', 'ah_login_logo' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment