I want to remove all the links from my network login page (“Register”,”Lost your password” and “Back to site”) how can i do that?
4 comments
Comments are closed.
I want to remove all the links from my network login page (“Register”,”Lost your password” and “Back to site”) how can i do that?
Comments are closed.
I am not sure there is a way to suppress all these links, but you can hide them with CSS:
Result:
If you are customizing your login page, there are also great plugins that help you do that and more. One I recall working great is LoginPress.
https://wordpress.org/plugins/loginpress/
Ten years later, people still search for this (I know, because that is how I landed here), and the answer seems to always be: use CSS or install a plugin.
The CSS is merely hiding the info from view. If you don’t want the HTML to render all together for it, you need to apply some filters. Add the following to your functions.php file:
Sorry, I suck at code notations. Basically, the ‘add_filter’ lines call up each aspect of the login page you want to suppress or change (that’s the first parameter), followed by the value with which you want to replace it. You can either insert a variable here, or call up a function.
For this example, I went with the function way to demonstrate the flexibility. You can add the HTML of your choice in the $url variable. One thing to note, however, is that the “Back To” block will only suppress the
<a>
tag; wp-login produces the<p class="backtoblog">
code outside of any filters that I could see. So, if in ‘set_login_backtohtml’ you set$url = "Inconceivable!";
, then the resulting HTML would look something like:The Lost Password and Register links, similarly, are wrapped inside a
<p>
tag with a class of ‘nav.’What you can do is open up the wp-login.php (or any core) file and look at all the lines that call
apply_filter.
Each one of these is something you can change in your functions.php file with theadd_filter()
methods. DO NOT CHANGE THE CORE FILE ITSELF! Just make sure you study the filter you want to manipulate carefully.Hope this helps!
just go to htdocs->then ur site->wp-login.php page and
find
function login_footer($input_id = ”) {
and if want to hide all the URL’s just comment the whole function