PHPackages                             hyyan/logo-controller - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hyyan/logo-controller

AbandonedArchivedWordpress-plugin[Utility &amp; Helpers](/categories/utility)

hyyan/logo-controller
=====================

Wordpress plugin to add new option for the theme customizer allowing the user to change th logo in website and the login page

1.0(11y ago)180MITPHPPHP &gt;=5.3.2

Since Oct 10Pushed 11y ago1 watchersCompare

[ Source](https://github.com/hyyan/logo-controller)[ Packagist](https://packagist.org/packages/hyyan/logo-controller)[ RSS](/packages/hyyan-logo-controller/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

[Wordpress Logo Controller ](https://github.com/hyyan/logo-controller/)
=======================================================================

[](#wordpress-logo-controller-)

[![project status](https://camo.githubusercontent.com/4102ebdeee16ce5ae7f36af7ae700e4e60fe2417ebc6f94346ef571cb0ff2e1e/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f687979616e2f6c6f676f2d636f6e74726f6c6c65722e706e67)](http://stillmaintained.com/hyyan/logo-controller)[![Latest Stable Version](https://camo.githubusercontent.com/69486803b46fdb03e873a59c3a705ff03219cc7806955e46a67f91ccb14e4f25/68747470733a2f2f706f7365722e707567782e6f72672f687979616e2f6c6f676f2d636f6e74726f6c6c65722f762f737461626c652e737667)](https://packagist.org/packages/hyyan/logo-controller)[![Total Downloads](https://camo.githubusercontent.com/42d94fb2188a12735a910a7cf6b58cad971bdd733b011da123a3f2967b175823/68747470733a2f2f706f7365722e707567782e6f72672f687979616e2f6c6f676f2d636f6e74726f6c6c65722f646f776e6c6f6164732e737667)](https://packagist.org/packages/hyyan/logo-controller)[![License](https://camo.githubusercontent.com/b3e894c0ca2e6eca26a1d09a367948dfa6096fbaea6dc3796761344457aa25e2/68747470733a2f2f706f7365722e707567782e6f72672f687979616e2f6c6f676f2d636f6e74726f6c6c65722f6c6963656e73652e737667)](https://packagist.org/packages/hyyan/logo-controller)

Wordpress plugin to add new section for the customizer to allow the user to change the logo for website and login page.

[![ScreenShot](https://camo.githubusercontent.com/8b32d220cea0671e6436ac4f9c6c80e7b7eebd2385eecb78da336dc1d36163b2/68747470733a2f2f7261772e6769746875622e636f6d2f687979616e2f6c6f676f2d636f6e74726f6c6c65722f6d61737465722f73637265656e73686f742d322e706e67)](https://camo.githubusercontent.com/8b32d220cea0671e6436ac4f9c6c80e7b7eebd2385eecb78da336dc1d36163b2/68747470733a2f2f7261772e6769746875622e636f6d2f687979616e2f6c6f676f2d636f6e74726f6c6c65722f6d61737465722f73637265656e73686f742d322e706e67)

How to install
--------------

[](#how-to-install)

### Classical way

[](#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

[](#composer-way)

1. run composer command : ` composer require hyyan/logo-controller`

How to use
----------

[](#how-to-use)

### Plugin configutaion

[](#plugin-configutaion)

The plugin comes with following configuration as default :

```
$default = array(
    // path for default logo
    'default' => '/logo.png',
    //the logo url (default to home page)
    'url' => home_url('/'),
    // the logo desciption default to (get_bloginfo('name', 'display'))
    'description' => get_bloginfo('name', 'display'),
    // enable logo display on the login page
    'enable-on-login-page' => 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\LogoController.options', function(array $default) {

    $default['default'] = '/my-logo.png';
    $default['enable-on-login-page'] = false;

    return $default;
});
```

### Display the logo in your theme

[](#display-the-logo-in-your-theme)

The plugin does not make any assumption about the place of your logo so you have to add it manually , probably in your `header.php` template.

```
