We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello i use this code in functions.php
function benfiratkaya_add_search_form($items, $args) { if ($args->theme_location == 'primary') { $searchForm = get_search_form(false); $items .= $searchForm; return $items; } } add_filter('wp_nav_menu_items', 'benfiratkaya_add_search_form', 10, 2);
if use this code not showing sidebar menu items.
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
No branches or pull requests
Hello i use this code in functions.php
if use this code not showing sidebar menu items.
The text was updated successfully, but these errors were encountered: