Skip to content

Instantly share code, notes, and snippets.

@bouyajdad
Last active April 14, 2018 07:50
Show Gist options
  • Select an option

  • Save bouyajdad/a93eb42db2f4715641936dd10e089f84 to your computer and use it in GitHub Desktop.

Select an option

Save bouyajdad/a93eb42db2f4715641936dd10e089f84 to your computer and use it in GitHub Desktop.
[WordPress - Imprint and Privacy on login]
<?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
@hai2009

hai2009 commented Apr 14, 2018

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment