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

#page

Posted on January 10, 2017January 18, 2017

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.

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');

 

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