Skip to content
ITLC Tutorials
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

WordPress

WordPress is a free and open-source content management system (CMS) based on PHP and MySQL. Features include a plugin architecture and a template system. WordPress is reportedly the easiest and most popular website management or blogging system in use on the Web, supporting more than 60 million websites.

Most WordPress functionality can be overridden using your child theme’s functions.php file.

Posted on January 10, 2017January 18, 2017

Theme the WordPress Login Page

Watch out! This tutorial is over 4 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.

PHP
1
2
3
4
5
6
// 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');

 

Posts navigation

Previous page Page 1 … Page 3 Page 4

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