The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

-1

You can replace the logo using built-in theme editor as explained in this post. Step 1: Login to your WordPress site as admin and go to Media -> Add New to upload a new image and copy the image url. You can also upload your new logo to the theme’s images directory or you can create a new directory to upload the logo. This can be done with the help of web ...


1

This is not core functionality but a "feature" of my security plugin (Wordfence, in this instance). Disabled the plugin by using FTP to rename the folder and was able to log back in.


1

A quick solution is to simply navigate to wordpress/wp-content/themes/sjr/ and rename the theme folder. For example sjr to sjr-backup - this will cause WordPress to pick another theme or no theme at all. Allowing access to the admin dashboard again.


1

Compromised theme, most likely. Check theme files for inserted code, along with inserted code in other files. Change credentials everywhere (Host, database, wp admin, ftp). Look at all files manually, plus files that shouldn't be there (like extra ICO files as in .somefile.ico , which have php code inside. (Notice the leading dot, which indicates a hidden ...


0

What you have should work - although you should not use $_SESSION (as Tom already noted). Also ID, user_pass, and user_login are all top level in the user object. Here's what I would try: $email = sanitize_email( $_POST['email'] ); $pass = $_POST['password']; $user = get_user_by( 'email', $email ); if ( wp_check_password( $pass, $user->user_pass, $...


0

If using an SSL when setting up your site it is very common to see this issue. I found using $_SERVER['HTTPS'] = true; At the top of wp-config.php fixes this problem.


0

None of the current answers worked for me. What I've done was check if $_GET array has a 'page' key and if its value is 'sign-in'. if (isset($_GET['page']) && $_GET['page'] == 'sign-in'){ // you're on login page }


0

You might be tempted to do it manually and not use a plugin for this but I strongly recommend doing it with a plugin. The reason being is that when WordPress updates your manual solution will most likely result in loss. Modifying core functions is generally not a good idea and can be difficult for a novice PHP user. Also changing that can cause issue when ...


Top 50 recent answers are included