K
K
katabash2021-08-30 16:55:15
User identification
katabash, 2021-08-30 16:55:15

How to make a custom login page in WP?

I tried to do it myself by creating a page and modernizing it: 612ce2230d824376912839.png
But then there were problems with redirects and still wordpress often gave out jokes and threw it on wp login, for example, under the pretext of a cookie error or, in principle, when going to the admin panel. I downloaded the WPS Hide Login plugin for an adequate redirect. But it just changes the url and still opens a very "beautiful" wp login page under a different url. Of course, you can modify it, but still, it seems like it will not work to do it with the same result. But what to do? Is it worth it to get confused and make a custom login page with crutches (if so, how exactly) or is it better to just change the default login page using a plugin (and again, whichever is better)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Zolin, 2021-08-30
@katabash

The question "what to do?" is a philosophical question. Essentially you have two options:

  1. You can arm yourself with a can of coffee and documentation, rewrite the registration and authorization form, disassemble the functions, find filters, how to replace the link and everything that you meet along the way and hope that you did not make holes in the authorization system
  2. Don't mess around and leave the authorization link alone until you have several million active audiences, your site is of no interest to hackers. Set a complex password. Install fail2ban brute force protection and sleep well

Here are the functions that you need for the first option. You can start with the function wp_login_form(), it outputs an HTML login form

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question