# Can't embed search bar when share visualization

**URL:** <https://discuss.elastic.co/t/cant-embed-search-bar-when-share-visualization/120622>\
**Category:** Kibana\
**Created:** [February 20, 2018, 11:20am UTC](https://discuss.elastic.co/t/cant-embed-search-bar-when-share-visualization/120622 "2018-02-20T11:20:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekane95](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@ekane95](https://discuss.elastic.co/u/ekane95)\
**Post date:** [February 20, 2018, 11:20am UTC](https://discuss.elastic.co/t/cant-embed-search-bar-when-share-visualization/120622/1 "2018-02-20T11:20:58Z")

</div>

I am using kibana 4.6 and i want to embed the search bar when i share a visualization using iframe.  
In the settings it's no option.  
i have seen older versions of kibana 4 that have that possibility and also I saw that on kibana 6.

Can I do it on kibana 4.6.x

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [February 20, 2018, 11:54am UTC](https://discuss.elastic.co/t/cant-embed-search-bar-when-share-visualization/120622/2 "2018-02-20T11:54:08Z")

</div>

there is no option at the moment that would allow you to customize that.

---

<div class="post-metadata">

**Author:** ![ekane95](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@ekane95](https://discuss.elastic.co/u/ekane95)\
**Post date:** [February 20, 2018, 11:56am UTC](https://discuss.elastic.co/t/cant-embed-search-bar-when-share-visualization/120622/3 "2018-02-20T11:56:36Z")

</div>

Is there any way i can create a kbn\_top\_nav directory like I have seen in kibana 7.0  
I have already created a custom plugin so if there is any way that can be done please tell me

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [February 20, 2018, 1:45pm UTC](https://discuss.elastic.co/t/cant-embed-search-bar-when-share-visualization/120622/4 "2018-02-20T13:45:52Z")

</div>

could you elaborate a bit, maybe provide me with some screenshot of what you are referring to ?

thank you.

---

<div class="post-metadata">

**Author:** ![ekane95](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@ekane95](https://discuss.elastic.co/u/ekane95)\
**Post date:** [February 20, 2018, 1:56pm UTC](https://discuss.elastic.co/t/cant-embed-search-bar-when-share-visualization/120622/5 "2018-02-20T13:56:55Z")

</div>

I want something like this, not like the 1st picture, more like the 2nd picture.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/3/f3e531b1387786373e54269067a821e385686de9.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/c/0c13cfe140e0e29d87afec2b440b189f1a780403.png)

here is the github repo of this guy: [https://github.com/elastic/kibana](https://github.com/elastic/kibana)

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [February 20, 2018, 2:23pm UTC](https://discuss.elastic.co/t/cant-embed-search-bar-when-share-visualization/120622/6 "2018-02-20T14:23:19Z")

</div>

unfortunately that PR never got merged, so this functionality is not available.

---

<div class="post-metadata">

**Author:** ![ekane95](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@ekane95](https://discuss.elastic.co/u/ekane95)\
**Post date:** [February 20, 2018, 2:28pm UTC](https://discuss.elastic.co/t/cant-embed-search-bar-when-share-visualization/120622/7 "2018-02-20T14:28:53Z")

</div>

So you are telling me that even if I move navbar inside the div that embeds when we share visualization like this:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/e/0ee4bca51f438094a25e850e27294acd100b1de6.png)  
there is no way I can get navbar on the iframe

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [February 20, 2018, 2:46pm UTC](https://discuss.elastic.co/t/cant-embed-search-bar-when-share-visualization/120622/8 "2018-02-20T14:46:10Z")

</div>

As far i am aware this is not provided as any build it kibana feature. This doesn't mean however that its not possible to implement it in your custom plugin. Showing the searchbar out of top bar definitely sounds like a reasonable approach.

---

<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:** [March 20, 2018, 2:46pm UTC](https://discuss.elastic.co/t/cant-embed-search-bar-when-share-visualization/120622/9 "2018-03-20T14:46:21Z")

</div>

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