# Customize the head navigation bar Since version `1.5.6`, you can add the html element to the top navigation bar, open `app/Admin/bootstrap.php`: ```php use Encore\Admin\Facades\Admin; Admin::navbar(function (\Encore\Admin\Widgets\Navbar $navbar) { $navbar->left('html...'); $navbar->right('html...'); }); ``` Methods `left` and `right` are used to add content to the left and right sides of the head, the method parameters can be any object that can be rendered (objects which impletements `Htmlable`, `Renderable`, or has method `__toString()`) or strings. ## Add elements to the left For example, add a search bar on the left, first create a view `resources/views/search-bar.blade.php`: ```php
``` Then add it to the head navigation bar: ```php $navbar->left(view('search-bar')); ``` ## Add elements to the right You can only add the `
  • ` tag on the right side of the navigation, such as adding some prompt icons, creating a new rendering class `app/Admin/Extensions/Nav/Links.php` ```php 4
  • 7
  • 9
  • HTML; } } ``` Then add it to the head navigation bar: ```php $navbar->right(new \App\Admin\Extensions\Nav\Links()); ``` Or use the following html to add a drop-down menu: ```html ``` More components can be found here [Bootstrap](https://getbootstrap.com/)