Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1151867
Disable Search in the Menu
Closed

Comments

  •  2
    souma2014 started the conversation

    How can I disable the search button in the menu or even customize the search page and the search icon?

  •  433
    Sergio replied

    HI!

    pls. use following css:

    li.menu-item.menu-item-search {
        display: none !important;
    }

     

    or in the TheGem child theme add next code to functions.php file:

    function thegem_child_init_icon() {
        remove_filter('wp_nav_menu_items', 'thegem_menu_item_search', 10);
    }
    add_action('init', 'thegem_child_init_icon');

    If you’re happy with our theme, please rate us with 5 stars on Themeforest. It keeps us motivated!  (How to rate).

    Regards Sergio Codex.