Open benfiratkaya opened 5 years ago
I fixed with this code:
function benfiratkaya_add_search_form($items, $args) {
if ($args->theme_location == 'primary' && !is_better_amp()) {
$searchForm = get_search_form(false);
$items .= $searchForm;
}
return $items;
}
add_filter('wp_nav_menu_items', 'benfiratkaya_add_search_form', 10, 2);
i checking with 'is_better_amp()' function
Hello i use this code in functions.php
if use this code not showing sidebar menu items.