This is the code in my child theme’s function.php that I added to add the search form:
add_theme_support( ‘html5’, array( ‘search-form’ ) );
add_filter(‘wp_nav_menu_items’, ‘add_search_form_to_menu’, 10, 2);
function add_search_form_to_menu($items, $args) {
// If this isn’t the main navbar menu, do nothing
if( !($args->theme_location == ‘main’) ) // with Customizr Pro 1.2+ and Cusomizr 3.4+ you can chose to display the saerch box to the secondary menu, just replacing ‘main’ with ‘secondary’
return $items;
// On main menu: put styling around search and append it to the menu items
return $items . ‘<li class=”my-nav-menu-search”>’ . get_search_form(false) . ‘‘;
}