1. Go to this page and download the library: Download hyyan/admin-color-schema library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hyyan / admin-color-schema example snippets
$default = array(
// path relative to the theme dir
'path' => '/color-schema',
// default color-schema to activate for every new user
'default' => '',
// if true the user will be no more able to change its dashboard color schema
// and the default one will be used
'disable_color_picker' => false,
// enable color-schema on fontend
'enbale-on-frontend' => true,
);
// in the your theme's functions.php file
add_filter('Hyyan\AdminColorSchema.options', function(array $default) {
// read schemas from "admin-color-schema" folder relative to current theme
$default['path'] = '/admin-color-schema';
// use Bluetheme as default schema for every new user
$default['default'] = 'BlueTheme';
return $default;
});
schema.ini
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.