Hello Summer Sale!
Exclusive season-opening discount on TheGem theme.
Limited time offer.

Okay
  Public Ticket #1005864
Removing the Search Icon in the menu
Closed

Comments

  •  1
    JOUH started the conversation

    Hello I would like to Remove the Search Icon in the main menu (next to Cart icon).

    How do i do that? 

    please provide code.

  •  7,280
    Oliver replied

    HI!

    pls. use following css:

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

    or

     

    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

  •  2
    Antonio henry replied

    hi gregg i've tired this and im still having no luck

  •  1
    JOUH replied

    CSS worked for me

  •  2
    Antonio henry replied

    its removed the search function but not the search and social icons on the mean

  •  2
    Antonio henry replied

    @jouh can you send me a picture of your menu

  •  1
    JOUH replied

    http://farmbox.ae/

    but what do want to achieve?