Connect to your website via FTP, go to wp-content/themes/Your Theme. Replace ‘your theme’ Edit your currently active theme’s functions.php file, if you don’t have one in your theme create it. Add this line:
Upload the file back to your server. Now login using the password you added in functions.php.