At the time of using WordPress CMS, sometimes we face lots of problems, and almost every problem has a solution. Today, in this tutorial I will tell you how to fix the extra model pop-up login when commenting/login. When someone tries to log in or comment on a WordPress blog post, it shows pop to login. If you put, Username: admin, Password: admin then you can comment and log in. The problem appears in both times when you want to comment and when you want to log in.
There are some ways to fix this problem. First, you can reach out to your hosting provider to fix this. Your hosting provider injects this extra pop-up to fight against Brute Force Attacks. However, I will show you how to fix it by yourself.
How to fix extra pop up login when comment in WordPress
To fix “show pop up when login for commenting”, go to .htaccess file and put the below scripts, and click save.
<FilesMatch "wp-comments-post.php"> AuthType None require all granted </FilesMatch>
How to fix extra pop up login when login WordPress
To fix this extra pop-up login when you try to log in, go to the .htaccess file and put the below scripts, and click save.
<FilesMatch "wp-login.php"> AuthType None require all granted </FilesMatch>
To find out the .htaccess file, go to Cpanel, and you will see this. If you do not see this, set “show hidden file”. Another way, if you are a Yoast SEO user, go to WordPress dashboard, click SEO, then go to Tools. Click “File editor” and you will see the .htaccess file under robots.txt.
I hope, you have successfully fixed your problem. If you still face even a signal problem regarding pop login, let me know by dropping a comment.