Wordpress plugin to allow themes to add their own login page style
- Add your own login style which is fit with your theme
- check the remember me checkbox by default
The plugin comes with an example to see how the plugin works
To use the example
- Copy
example/css/login.style
toyour/current/theme/css/login.css
- visit the login page to see the new style
- Download the plugin as zip archive and then upload it to your wordpress plugins folder and extract it there.
- Activate the plugin from your admin panel
- run composer command :
composer require hyyan/login-style
Just add your css file to your/current/theme/css/login.css
and the plugin
will handle the rest for you.
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;
});
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