Skip to content

Admin login customization

Giulio Pecorella edited this page Jan 12, 2018 · 3 revisions

This module allows to change these things on the admin login page:

  • Colors
  • Logo
  • Logo URL

Example: add_theme_support('rankz-admin-login', '#e50040', 'dist/images/login-logo.png', 'https://example.com');

Colors

Set the preferred primary color for buttons and other elements: the function will automatically calculate every other color (darker or brighter) used on the login page based on the primary color. Leave the parameter unset or empty in order to use WordPress' default colors.

Logo

Set a local path (e.g. dist/images/login-logo.png) or an URL (e.g. https://example.com/login-logo.png) for the logo. Leave the parameter unset or empty in order to use WordPress' default logo.

Logo URL

Set an URL with or without the http:// or https://, WordPress will automatically add the http://. To use https:// declare it in the parameter just like the example. Leave the parameter unset or empty in order to use WordPress' default URL.

Clone this wiki locally