# Add small logo for a custom Kibana app

**URL:** <https://discuss.elastic.co/t/add-small-logo-for-a-custom-kibana-app/86277>\
**Category:** Kibana\
**Created:** [May 18, 2017, 2:01pm UTC](https://discuss.elastic.co/t/add-small-logo-for-a-custom-kibana-app/86277 "2017-05-18T14:01:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trex](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trex/32/34230_2.png) [@trex](https://discuss.elastic.co/u/trex)\
**Post date:** [May 18, 2017, 2:01pm UTC](https://discuss.elastic.co/t/add-small-logo-for-a-custom-kibana-app/86277/1 "2017-05-18T14:01:45Z")

</div>

_Kibana 5.2.2_  
_Elasticsearch 5.2.2_  
_Server OS: Ubuntu v15_  
_Browser: Chrome Version 58.0.3029.96 (64-bit) and Firefox 47.0_  
_Browser OS: Ubuntu v15_

I want to display a big logo if the left menu bar is open and a small one if the bar is collapsed. Now, I use the code from [this guide](https://github.com/elastic/kibana/blob/master/docs/development/core/development-basepath.asciidoc#getting-a-static-asset-url) to display the big logo:

```auto
// in plugin/public/main.js
import uiChrome from 'ui/chrome';
import logoUrl from 'plugins/facechimp/assets/banner.png';

uiChrome.setBrand({
  logo: `url(${logoUrl}) center no-repeat`
});

```

In order to have the small logo displayed, I modified code to this:

```auto
import smallLogo from 'plugins/facechimp/assets/smallBanner.png';
uiChrome.setBrand({
  logo: `url(${logoUrl}) center no-repeat`,
  smallLogo: `url(${smallLogo}) center no-repeat`
});

```

But the small logo is not displayed when the menu bar is collapsed, there is always the big logo.  
How could the small logo be displayed when the menu bar is collapsed?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 15, 2017, 2:03pm UTC](https://discuss.elastic.co/t/add-small-logo-for-a-custom-kibana-app/86277/2 "2017-06-15T14:03:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
