Created
April 21, 2024 15:23
-
-
Save nextab/9262e7eb592b55c23f9f8e456e828dba 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
#region Replace URL for Logo on Login Screen | |
function nextab_url_login_logo(){ | |
return get_bloginfo( 'wpurl' ); | |
} | |
add_filter('login_headerurl', 'nextab_url_login_logo'); | |
#endregion | |
#region Change title tag for Login Link | |
function nextab_login_logo_url_title() { | |
return 'Zurück zu XXX '; | |
} | |
add_filter( 'login_headertext', 'nextab_login_logo_url_title' ); | |
#endregion | |
#region Add Widget with Developer Info in WP Dashboard | |
function nextab_add_dashboard_widgets() { | |
wp_add_dashboard_widget('wp_dashboard_widget', 'Designer & Developer Info', 'nextab_theme_info'); | |
} | |
add_action('wp_dashboard_setup', 'nextab_add_dashboard_widgets' ); | |
function nextab_theme_info() { | |
echo '<ul> | |
<li><strong>Entwickelt von:</strong> <a href="http://www.nextab.de">nexTab.de</a></li> | |
<li><strong>E-Mail:</strong> <a href="mailto:[email protected]">[email protected]</a></li> | |
<li><strong>Mobil:</strong> <a href="tel:+491608436001">0160 / 843 6001</a></li> | |
</ul>'; | |
} | |
#endregion | |
#region Replace Logo on WP Login Screen | |
/* | |
add_action('login_head', 'nextab_custom_login_logo'); | |
function nextab_custom_login_logo() { | |
$upload_dir = wp_upload_dir(); | |
echo '<style type="text/css"> | |
h1 a { background-image:url("'. $upload_dir['baseurl'] . '/2016/10/heupel_logo.png") !important; background-size: 179px 68px !important; width: 179px !important; height: 68px !important; margin-bottom: 40px !important; padding-bottom: 0 !important; } | |
.login form { margin-top: 10px !important; } | |
</style>'; | |
} */ | |
#endregion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment