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 #1053871
Disable Seach on Header
Closed

Comments

  •  2
    Matheus started the conversation

    Hello! I Wish to disable the search icon on header menu, i dont want that the user make any searchs in my site. How i can do it?

    Thank You!

  •  6,930
    Oliver 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() {
        remove_filter('wp_nav_menu_items', 'thegem_menu_item_search', 10);
    }
    add_action('init', 'thegem_child_init');

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •   Matheus replied privately
  •   Oliver replied privately
  •  2
    pat_bals replied

    Hello Gregor,


    When i use this code on a vertical header the search bar is still visable. Can you please help me?


    Patrick

  •  6,930
    Oliver replied

    Pls. give link to your site.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  2
  •  6,930
    Oliver replied

    Css:

    .vertical-minisearch {
        display: none !important;
    }
    

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver