Skip to content
ITLC Tutorials

ITLC Tutorials

Show me the code!

  • Home
    • All Tutorials
  • Programming and Scripting
    • Bash
    • C/C++
    • C#
    • Go
    • Java
    • Javascript/jQuery
    • Perl
    • PHP
    • Python
    • PowerShell
    • Ruby
    • Visual Basic .NET
  • Web Programming
    • C#
    • HTML/CSS
    • Javascript/jQuery
    • Node.js
    • PHP
    • Visual Basic .NET
    • WordPress
  • Operating Systems
    • Android
    • Linux
    • Windows
  • Other Stuff
    • Databases
    • Data Structures and Algorithms
    • Client Server Distributed Programming
    • Docker
    • Raspberry Pi
    • Misc
Posted on January 10, 2017January 18, 2017 by paul

Theme the WordPress Login Page

Watch out! This tutorial is over 10 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.
Tutorial Difficulty Level    

Loads a CSS file into your login page so you can override default styles. Just add wp-login.css into your theme folder.

// Custom CSS for the login page
// Create wp-login.css in your theme folder
function itlc_loginCSS() {
	echo '<link rel="stylesheet" type="text/css" href="'.get_bloginfo('template_directory').'/wp-login.css"/>';
}
add_action('login_head', 'itlc_loginCSS');

 

Related Tutorials

  • Create a WordPress Post from Node.jsCreate a WordPress Post from Node.js
  • How to Style Contact Form 7 Forms in WordPressHow to Style Contact Form 7 Forms in WordPress
  • Display Random Posts in WordPressDisplay Random Posts in WordPress
  • Using the WordPress functions.php fileUsing the WordPress functions.php file
CategoriesPHP, WordPress Tagslogin, page, theme, wordpress

Post navigation

Previous PostPrevious Hello World in PHP
Next PostNext Hello World in C

IT Learning Centre

The IT Learning Centre (ITLC) is a tutor-supported study environment available to all Computing Students in DkIT.

Search

  • Twitter
  • Email
  • Website
Proudly powered by WordPress
Scroll Up