Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

hyyan/login-style

Repository files navigation

project status Latest Stable Version Total Downloads License

Wordpress plugin to allow themes to add their own login page style

Features

  • Add your own login style which is fit with your theme
  • check the remember me checkbox by default

Example

The plugin comes with an example to see how the plugin works

To use the example

  • Copy example/css/login.style to your/current/theme/css/login.css
  • visit the login page to see the new style

ScreenShot

How to install

Classical way

  1. Download the plugin as zip archive and then upload it to your wordpress plugins folder and extract it there.
  2. Activate the plugin from your admin panel

Composer way

  1. run composer command : composer require hyyan/login-style

How to use

Just add your css file to your/current/theme/css/login.css and the plugin will handle the rest for you.

Plugin configutaion

The plugin comes with following configuration as default :

$default = array(

    // path relative to the theme dir
    // (could be a php file which output css markup)
    'path' => '/css/login.css',

    // check the remember me checkbox
    'check_remember_me' => true,
);

You can override the default configuration using add_filter function like in the following example :

// in the your theme's functions.php file

add_filter('Hyyan\LoginStyle.options', function(array $default) {

    $default['path'] = '/my-login-style.css';

    return $default;
});

Contributing

Everyone is welcome to help contribute and improve this plugin. There are several ways you can contribute:

  • Reporting issues (please read issue guidelines)
  • Suggesting new features
  • Writing or refactoring code
  • Fixing issues

About

Wordpress plugin to allow themes to add their own login page style

Resources

License

Stars

Watchers

Forks

Packages

No packages published