How to use
Just go to customize page and choose your logo , then use one of the following
functions in your theme to display the logo.
`
<?php
// print :
http://example.com/path/to/logo.png
echo hyyan_get_the_logo();
// print :
hyyan_the_logo();
`
You can also control the plugin behaviour by using the following filter:
`
<?php
// in the your theme's functions.php file
add_filter('Hyyan\LogoController.options', function(array $default) {
$default['default'] = '/my-logo.png';
$default['enable-on-login-page'] = true;
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
== Installation ==
Classical Way
Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
Composer Way
composer require hyyan/logo-controller:version
== Screenshots ==
- Plugin in customizer
- Choosen logo in login page