Bug #3780

wp-login.php template styling

Added by Raymond Hoh almost 7 years ago. Updated over 5 years ago.

Priority name:
Category name:
WordPress (misc)
Target version:
Start date:
Due date:
% Done:


Estimated time:


Whenever we upgrade WordPress to the latest version, we have to manually reapply a fix so the login template looks alright on the main Commons site.

What we've been doing in the past is adding a call to get_header() directly in wp-login.php. While this works, the HTML markup is invalid and creates duplicate <html> and <body> tags. The login template also does not look right on certain sub-sites. For example, those using the Twenty Twelve theme will notice some irregularities.

I'd like to try and streamline this a bit by using object buffering and some custom CSS fixes.

2016-08-23_090754.png (49.4 KB) 2016-08-23_090754.png Raymond Hoh, 2016-08-23 12:10 PM

Related issues

Related to CUNY Academic Commons - Bug #12108: Password reset styling/scripts don't work correctlyResolved2019-11-18


#1 Updated by Stephen Real almost 7 years ago

Is this something you will be able to get to in time for 1.8 or should we punt it down the road?

#2 Updated by Raymond Hoh almost 7 years ago

  • Target version changed from 1.8 to 1.9

Going to move this to 1.9 as the current implementation works.

The method I discuss above will require a bit of dev time and testing.

#3 Updated by Boone Gorges about 6 years ago

  • Target version changed from 1.9 to 1.10

Moving this out of 1.9. Ray, it's not really user-facing, so if you come up with a fix, feel free to move it into a minor release.

#4 Updated by Raymond Hoh over 5 years ago

Fixed in commit 898420b.

To test, go to the new cdev environment and navigate to the login page (

Login page should look more integrated into the existing theme.

Here's a screenshot at a narrow width:

#5 Updated by Raymond Hoh over 5 years ago

  • Status changed from New to Resolved

#6 Updated by Boone Gorges over 5 years ago

Holy mackerel, this is a feat of engineering. Thanks, Ray. Wouldn't it be nice if wp-login.php were just a theme-styled page?

#7 Updated by Raymond Hoh about 2 years ago

  • Related to Bug #12108: Password reset styling/scripts don't work correctly added

Also available in: Atom PDF