Display searchform in the menu

It seems ok with function wpgood_nav_search($items, $args) { if( ($args->theme_location == ‘primary’ ) or ($args->theme_location == ‘top-menu-deconnecte’ )) { return $items . ‘<li class=”well-search_top”>’ . get_search_form(false) . ‘</li>’; } else { return $items; } }

Custom menu items in admin

Use the add_meta_box() function (working example), and use nav-menus for the post-type. John Morris also wrote about this in 2013: How to Add a Fully Functional Custom Meta Box to WordPress Navigation Menus.

code to add an extra selection to the menu editor

The WooCommerce Brands plugin has this feature. https://woocommerce.com/products/brands/ It sounds like you would need to move your brands out of the custom field and into this plugin, so the effort will depend on how many product brands you have and whether you’re willing to start over with this plugin.

Primary menu items are dissapearing

It seems that the background color of menu and text color of the menu items is same at https://trutrade.org/abouttrutrade/. That’s why, you feel that primary menu items are disappearing. When I add this code, the menu items appear in red color: a.mega-menu-link { color: #f00 } So, try changing the background color. It should fix … Read more

Custom menu is rendered in all menus

I actually found the answer on stackexchange as well: https://wordpress.stackexchange.com/a/184149/132736 I need to replace the ‘theme-location’ by ‘theme_location’. I simply misread the function reference on the WordPress codex.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)