Last active
April 14, 2018 07:50
-
-
Save indikatordesign/a93eb42db2f4715641936dd10e089f84 to your computer and use it in GitHub Desktop.
[WordPress - Imprint and Privacy on login]
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
<?php | |
add_action( 'login_footer', function() | |
{ | |
$imprint = site_url( 'imprint' ); // change imprint with your page-slug | |
$privacy = site_url( 'privacy' ); // change privacy with your page-slug | |
echo <<<LINKS | |
<style> | |
.login-menu{position:absolute;bottom:10px;width:100%;display:block;text-align:center;}.login-menu li{display: inline-block;}.login-menu li,.login-menu a{color: white;} | |
</style> | |
<ul class="login-menu"> | |
<li><a href="{$imprint}">Imprint</a></li> | |
<li> | </li> | |
<li><a href="{$privacy}">Privacy</a></li> | |
</ul> | |
LINKS; | |
}); // end add_action |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great and usefull snippet !!!
Thank you for you work!
i just tryed but nothing appears in the login screen. Any idea why this is?
Kind regards
Horst