I will be opening a store soon. I want to remove the search icon. I tried everything I found on the internet but it didn’t work. Can you help me? The theme I am using is Prestige 5.6.1.
Hello @confuze
Can you share store URL?
Hello @confuze ,
I understand you are looking to remove Search Icon from the Header Section.
If you are using Search Icon, default provided by the Prestige Theme, then you can remove it using Theme Customizer.
Steps -:
-
Open Theme Customizer → Click on Header Section https://prnt.sc/uJk7vGO6PP69
-
Once Header section open, scroll and Uncheck the ‘Enable Search’ Option https://prnt.sc/rD2Yg9u9F09C
I hope it helps.
Thank you.
Hello @confuze
this is for a prestige theme only
Go to Online store ----------------------------> Themes--------------------------------------> (click on 3 dotes) Edit code--------------> find file “header.liquid”
find this code between line number 227 t0 2236
{{ 'header.general.open_search' | t }}
{%- if section.settings.show_icons -%}
{%- render 'icon' with 'search', class: 'header__nav-icon' -%}
{%- else -%}
{%- render 'icon' with 'search', class: 'header__nav-icon' -%}
{{ 'header.general.search' | t }}
{%- endif -%}
and delete this code your search icon will be deleted
Please let me know if it helps you.
Thanks
Hello.
Thank you for your answer, but I couldn't find the code.
![]()
Hello
thank you for your answer. I think this part does not exist in the version I use.
![]()
Hello @confuze
Can you please send me whole header.liquid file code so I can edit and send you back
Thanks
{%- comment -%}
In Prestige, the header is quite complex due to the very high number of possible combinations. If you have to edit it, please
make sure to duplicate the theme first so you can revert your changes in case any issue is introduced.
{%- endcomment -%}
{%- comment -%}
USEFUL VARIABLES
{%- endcomment -%}
{%- assign use_transparent_header = false -%}
{%- if template == ‘index’ and section.settings.enable_transparent_header -%}
{%- assign use_transparent_header = true -%}
{%- endif -%}
{%- if template.name == ‘collection’ and section.settings.enable_transparent_header_collection and collection.image and collection.all_products_count > 0 and collection.template_suffix != ‘no-image’ -%}
{%- assign use_transparent_header = true -%}
{%- endif -%}
{%- if section.settings.navigation_style != ‘sidebar’ -%}
{%- assign use_sidebar_menu = false -%}
{%- else -%}
{%- assign use_sidebar_menu = true -%}
{%- endif -%}
{%- comment -%}
CURRENCY AND LANGUAGE SELECTORS
{%- endcomment -%}
{%- if section.settings.show_country_selector and localization.available_countries.size > 1 -%}
{%- assign country_selector = true -%}
{%- endif -%}
{%- if section.settings.show_locale_selector and localization.available_languages.size > 1 -%}
{%- assign locale_selector = true -%}
{%- endif -%}
{%- if locale_selector or country_selector -%}
{%- capture localization_form -%}
{%- form ‘localization’, id: ‘localization_form_header’, class: ‘Header__LocalizationForm hidden-pocket hidden-lap’ -%}
{%- if locale_selector -%}
{%- comment -%}
SEARCH FORM (implemented as a modal)
Implementation note: make sure that the Search div is always just before the Header element, as the CSS uses
this assumption
{%- endcomment -%}
{% render ‘icon’ with ‘close’ %}
{%- comment -%}
HEADER CONTENT
{%- endcomment -%}
{%- capture section_settings -%}
{
“navigationStyle”: {{ section.settings.navigation_style | json }},
“hasTransparentHeader”: {% if use_transparent_header %}true{% else %}false{% endif %},
“isSticky”: {% if section.settings.use_sticky_header %}true{% else %}false{% endif %}
}
{%- endcapture -%}
{%- comment -%}
DESKTOP NAVIGATION (if not using the sidebar mode)
{%- endcomment -%}
{%- unless use_sidebar_menu -%}
{%- assign main_menu_handle = section.settings.navigation_menu | default: ‘main-menu’ -%}
{%- assign main_menu = linklists[main_menu_handle] -%}
{%- assign mega_menu_names = ‘’ -%}
{%- for block in section.blocks -%}
{%- if block.type == ‘mega_menu’ -%}
{%- assign trim_mega_menu_name = block.settings.navigation_mega_menu | strip -%}
{%- assign mega_menu_names = mega_menu_names | append: trim_mega_menu_name | append: ‘,’ -%}
{%- endif -%}
{%- endfor -%}
{%- assign mega_menu_names = mega_menu_names | downcase | split: ‘,’ | compact -%}
-
{%- for link in main_menu.links -%}
{%- assign downcased_link_title = link.title | downcase | strip -%}
{%- assign use_mega_menu = false -%}
- {{ sub_sub_link.title | escape }} {%- endfor -%}
-
{{ sub_link.title | escape }} {% if sub_link.links != blank %}{% render 'icon' with 'select-arrow-right' %}{% endif %}
{%- if sub_link.links != blank -%}
{%- endif -%}-
{%- for sub_sub_link in sub_link.links -%}
- {{ sub_sub_link.title | escape }} {%- endfor -%}
{%- endfor -%}
-
{{- link.title | escape -}}
{%- if use_mega_menu or menu_item_dropdown == blank -%}
{{ link.title | escape }}
{%- endif -%}
{{- menu_item_dropdown -}}
{%- endfor -%}
{%- capture menu_item_dropdown -%}
{%- if mega_menu_names contains downcased_link_title -%}
{%- for block in section.blocks -%}
{%- assign downcased_mega_menu_name = block.settings.navigation_mega_menu | downcase -%}
{%- if downcased_mega_menu_name != downcased_link_title -%}
{%- continue -%}
{%- endif -%}
{%- assign use_mega_menu = true -%}
{%- assign push_image_count = 0 -%}
{%- if block.settings.push_1_image -%}
{%- assign push_image_count = push_image_count | plus: 1 -%}
{%- endif -%}
{%- if block.settings.push_2_image -%}
{%- assign push_image_count = push_image_count | plus: 1 -%}
{%- endif -%}
{%- assign should_space_evenly = false -%}
{%- if push_image_count == 0 and link.links.size <= 3 -%}
{%- assign should_space_evenly = true -%}
{%- endif -%}
{%- if push_image_count == 1 and link.links.size == 1 -%}
{%- assign should_space_evenly = true -%}
{%- endif -%}
{%- if push_image_count == 2 and link.links.size == 1 -%}
{%- assign should_space_evenly = true -%}
{%- endif -%}
{%- if sub_link.links != blank -%}
-
{%- for sub_sub_link in sub_link.links -%}
{%- if push_image_count > 0 -%}
{%- assign max_width = 370 | at_most: block.settings.push_1_image.width -%}
{%- if block.settings.push_1_heading != blank -%}
{{ block.settings.push_1_heading | escape }}
{%- endif -%}{%- if block.settings.push_1_subheading != blank -%}
{{ block.settings.push_1_subheading | escape }}
{%- endif -%}{%- if block.settings.push_1_url != blank -%}
{%- endif -%}
{%- if block.settings.push_2_image -%}
{%- assign max_width = 370 | at_most: block.settings.push_2_image.width -%}
{%- if block.settings.push_2_heading != blank -%}
{{ block.settings.push_2_heading | escape }}
{%- endif -%}{%- if block.settings.push_2_subheading != blank -%}
{{ block.settings.push_2_subheading | escape }}
{%- endif -%}{%- if block.settings.push_2_url != blank -%}
{%- endif -%}
-
{%- for sub_link in link.links -%}
{{- localization_form -}}
{%- endunless -%}
{%- capture header_logo -%}
{%- if section.settings.logo != blank -%}
{%- capture image_size -%}{{ section.settings.logo_max_width }}x{%- endcapture -%}
{%- if use_transparent_header and section.settings.transparent_logo != blank -%}
{%- endif -%}
{%- else -%}
{{ shop.name }}
{%- endif -%}
{%- endcapture -%}
{{ header_logo }}
{%- else -%}-
{%- if localization_form != blank and section.settings.navigation_style == 'inline' or section.settings.navigation_style == 'logoLeft' -%}
- {{ localization_form }} {%- endif -%}
- {{- 'header.navigation.account' | t -}} {%- endif -%}
- {{ 'header.navigation.search' | t }}
- {{ 'header.navigation.cart' | t }} ({{ cart.item_count }})
{%- if shop.customer_accounts_enabled -%}
- {{ localization_form }}
{%- if shop.customer_accounts_enabled and section.settings.show_icons or use_sidebar_menu -%}
{%- render ‘icon’ with ‘account’ -%}
{%- endif -%}
<a href=“{{ routes.cart_url }}” class=“Header__Icon Icon-Wrapper Icon-Wrapper–clickable {% unless section.settings.show_icons or use_sidebar_menu %}hidden-desk{% endunless %}” {% if settings.cart_type == ‘drawer’ %}data-action=“open-drawer” data-drawer-id=“sidebar-cart” aria-expanded=“false” aria-label=“{{ ‘header.navigation.open_cart’ | t }}”{% endif %}>
{%- render ‘icon’ with ‘cart’ -%}
{%- render ‘icon’ with ‘cart-desktop’ -%}
{% schema %}
{
“name”: “Header”,
“class”: “shopify-section–header”,
“settings”: [
{
“type”: “checkbox”,
“id”: “use_sticky_header”,
“label”: “Use sticky header”,
“default”: true
},
{
“type”: “header”,
“content”: “Logo”
},
{
“type”: “image_picker”,
“id”: “logo”,
“label”: “Image”,
“info”: “200 x 60px .png recommended”
},
{
“type”: “range”,
“id”: “logo_max_width”,
“min”: 50,
“max”: 350,
“step”: 5,
“unit”: “px”,
“label”: “Image width”,
“default”: 140
},
{
“type”: “range”,
“id”: “mobile_logo_max_width”,
“min”: 50,
“max”: 200,
“step”: 5,
“unit”: “px”,
“label”: “Mobile image width”,
“default”: 90
},
{
“type”: “header”,
“content”: “Country/region selector”,
“info”: “To add a country/region, go to your currency settings.”
},
{
“type”: “checkbox”,
“id”: “show_country_selector”,
“label”: “Show country/region selector”,
“default”: true
},
{
“type”: “header”,
“content”: “Language selector”,
“info”: “To add a language, go to your language settings.”
},
{
“type”: “checkbox”,
“id”: “show_locale_selector”,
“label”: “Show language selector”,
“default”: true
},
{
“type”: “header”,
“content”: “Navigation”
},
{
“type”: “link_list”,
“id”: “navigation_menu”,
“label”: “Menu”,
“default”: “main-menu”
},
{
“type”: “select”,
“id”: “navigation_style”,
“label”: “Navigation style”,
“info”: “Setting will default to center style if screen width cannot fit all the links.”,
“options”: [
{
“value”: “sidebar”,
“label”: “Sidebar”
},
{
“value”: “inline”,
“label”: “Inline”
},
{
“value”: “center”,
“label”: “Center”
},
{
“value”: “logoLeft”,
“label”: “Logo left”
}
],
“default”: “inline”
},
{
“type”: “checkbox”,
“id”: “show_icons”,
“label”: “Show icons”,
“info”: “Text for account, search and cart are replaced by icons on desktop.”,
“default”: false
},
{
“type”: “header”,
“content”: “Transparent header”
},
{
“type”: “checkbox”,
“id”: “enable_transparent_header”,
“label”: “Enable on homepage”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “enable_transparent_header_collection”,
“label”: “Enable on collection pages”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “show_transparent_header_border”,
“label”: “Show separation border”,
“default”: true
},
{
“type”: “color”,
“id”: “transparent_text_color”,
“label”: “Text/icon color”,
“default”: “#ffffff”
},
{
“type”: “image_picker”,
“id”: “transparent_logo”,
“label”: “Logo image”,
“info”: “200 x 60px .png recommended”
}
],
“blocks”: [
{
“type”: “mega_menu”,
“name”: “Mega menu”,
“settings”: [
{
“type”: “text”,
“id”: “navigation_mega_menu”,
“label”: “Menu item”,
“info”: “Enter menu item to apply a mega menu dropdown. Learn more.”
},
{
“type”: “header”,
“content”: “Image push 1”
},
{
“type”: “image_picker”,
“id”: “push_1_image”,
“label”: “Image”,
“info”: “740 x 460 px .jpg recommended”
},
{
“type”: “text”,
“id”: “push_1_heading”,
“label”: “Heading”,
“default”: “Example heading”
},
{
“type”: “text”,
“id”: “push_1_subheading”,
“label”: “Sub-heading”,
“default”: “Example sub-heading”
},
{
“type”: “url”,
“id”: “push_1_url”,
“label”: “Link”
},
{
“type”: “header”,
“content”: “Image push 2”
},
{
“type”: “image_picker”,
“id”: “push_2_image”,
“label”: “Image”,
“info”: “740 x 460 px .jpg recommended”
},
{
“type”: “text”,
“id”: “push_2_heading”,
“label”: “Heading”,
“default”: “Example heading”
},
{
“type”: “text”,
“id”: “push_2_subheading”,
“label”: “Sub-heading”,
“default”: “Example sub-heading”
},
{
“type”: “url”,
“id”: “push_2_url”,
“label”: “Link”
}
]
}
]
}
{% endschema %}
Hello @confuze Replace whole code with this code
{%- comment -%}
In Prestige, the header is quite complex due to the very high number of possible combinations. If you have to edit it, please
make sure to duplicate the theme first so you can revert your changes in case any issue is introduced.
{%- endcomment -%}
{%- comment -%}
--------------------------------------------------------------------------------------------------------------------
USEFUL VARIABLES
--------------------------------------------------------------------------------------------------------------------
{%- endcomment -%}
{%- assign use_transparent_header = false -%}
{%- if template == 'index' and section.settings.enable_transparent_header -%}
{%- assign use_transparent_header = true -%}
{%- endif -%}
{%- if template.name == 'collection' and section.settings.enable_transparent_header_collection and collection.image and collection.all_products_count > 0 and collection.template_suffix != 'no-image' -%}
{%- assign use_transparent_header = true -%}
{%- endif -%}
{%- if section.settings.navigation_style != 'sidebar' -%}
{%- assign use_sidebar_menu = false -%}
{%- else -%}
{%- assign use_sidebar_menu = true -%}
{%- endif -%}
{%- comment -%}
--------------------------------------------------------------------------------------------------------------------
CURRENCY AND LANGUAGE SELECTORS
--------------------------------------------------------------------------------------------------------------------
{%- endcomment -%}
{%- if section.settings.show_country_selector and localization.available_countries.size > 1 -%}
{%- assign country_selector = true -%}
{%- endif -%}
{%- if section.settings.show_locale_selector and localization.available_languages.size > 1 -%}
{%- assign locale_selector = true -%}
{%- endif -%}
{%- if locale_selector or country_selector -%}
{%- capture localization_form -%}
{%- form 'localization', id: 'localization_form_header', class: 'Header__LocalizationForm hidden-pocket hidden-lap' -%}
{%- if country_selector -%}
{{ 'header.general.country' | t }}
{%- for country in localization.available_countries -%}
{%- endfor -%}
{%- endif -%}
{%- if locale_selector -%}
{{ 'header.general.locale' | t }}
{%- for language in localization.available_languages -%}
{%- endfor -%}
{%- endif -%}
{%- endform -%}
{%- endcapture -%}
{%- endif -%}
{%- comment -%}
--------------------------------------------------------------------------------------------------------------------
SEARCH FORM (implemented as a modal)
Implementation note: make sure that the Search div is always just before the Header element, as the CSS uses
this assumption
--------------------------------------------------------------------------------------------------------------------
{%- endcomment -%}
{%- if settings.search_mode != 'product' -%}
{%- endif -%}
{%- comment -%}
--------------------------------------------------------------------------------------------------------------------
HEADER CONTENT
--------------------------------------------------------------------------------------------------------------------
{%- endcomment -%}
{%- capture section_settings -%}
{
"navigationStyle": {{ section.settings.navigation_style | json }},
"hasTransparentHeader": {% if use_transparent_header %}true{% else %}false{% endif %},
"isSticky": {% if section.settings.use_sticky_header %}true{% else %}false{% endif %}
}
{%- endcapture -%}
{% schema %}
{
"name": "Header",
"class": "shopify-section--header",
"settings": [
{
"type": "checkbox",
"id": "use_sticky_header",
"label": "Use sticky header",
"default": true
},
{
"type": "header",
"content": "Logo"
},
{
"type": "image_picker",
"id": "logo",
"label": "Image",
"info": "200 x 60px .png recommended"
},
{
"type": "range",
"id": "logo_max_width",
"min": 50,
"max": 350,
"step": 5,
"unit": "px",
"label": "Image width",
"default": 140
},
{
"type": "range",
"id": "mobile_logo_max_width",
"min": 50,
"max": 200,
"step": 5,
"unit": "px",
"label": "Mobile image width",
"default": 90
},
{
"type": "header",
"content": "Country/region selector",
"info": "To add a country/region, go to your [currency settings.](/admin/settings/payments)"
},
{
"type": "checkbox",
"id": "show_country_selector",
"label": "Show country/region selector",
"default": true
},
{
"type": "header",
"content": "Language selector",
"info": "To add a language, go to your [language settings.](/admin/settings/languages)"
},
{
"type": "checkbox",
"id": "show_locale_selector",
"label": "Show language selector",
"default": true
},
{
"type": "header",
"content": "Navigation"
},
{
"type": "link_list",
"id": "navigation_menu",
"label": "Menu",
"default": "main-menu"
},
{
"type": "select",
"id": "navigation_style",
"label": "Navigation style",
"info": "Setting will default to center style if screen width cannot fit all the links.",
"options": [
{
"value": "sidebar",
"label": "Sidebar"
},
{
"value": "inline",
"label": "Inline"
},
{
"value": "center",
"label": "Center"
},
{
"value": "logoLeft",
"label": "Logo left"
}
],
"default": "inline"
},
{
"type": "checkbox",
"id": "show_icons",
"label": "Show icons",
"info": "Text for account, search and cart are replaced by icons on desktop.",
"default": false
},
{
"type": "header",
"content": "Transparent header"
},
{
"type": "checkbox",
"id": "enable_transparent_header",
"label": "Enable on homepage",
"default": false
},
{
"type": "checkbox",
"id": "enable_transparent_header_collection",
"label": "Enable on collection pages",
"default": false
},
{
"type": "checkbox",
"id": "show_transparent_header_border",
"label": "Show separation border",
"default": true
},
{
"type": "color",
"id": "transparent_text_color",
"label": "Text/icon color",
"default": "#ffffff"
},
{
"type": "image_picker",
"id": "transparent_logo",
"label": "Logo image",
"info": "200 x 60px .png recommended"
}
],
"blocks": [
{
"type": "mega_menu",
"name": "Mega menu",
"settings": [
{
"type": "text",
"id": "navigation_mega_menu",
"label": "Menu item",
"info": "Enter menu item to apply a mega menu dropdown. [Learn more](http://support.maestrooo.com/article/149-navigation-enabling-and-configuring-mega-menu)."
},
{
"type": "header",
"content": "Image push 1"
},
{
"type": "image_picker",
"id": "push_1_image",
"label": "Image",
"info": "740 x 460 px .jpg recommended"
},
{
"type": "text",
"id": "push_1_heading",
"label": "Heading",
"default": "Example heading"
},
{
"type": "text",
"id": "push_1_subheading",
"label": "Sub-heading",
"default": "Example sub-heading"
},
{
"type": "url",
"id": "push_1_url",
"label": "Link"
},
{
"type": "header",
"content": "Image push 2"
},
{
"type": "image_picker",
"id": "push_2_image",
"label": "Image",
"info": "740 x 460 px .jpg recommended"
},
{
"type": "text",
"id": "push_2_heading",
"label": "Heading",
"default": "Example heading"
},
{
"type": "text",
"id": "push_2_subheading",
"label": "Sub-heading",
"default": "Example sub-heading"
},
{
"type": "url",
"id": "push_2_url",
"label": "Link"
}
]
}
]
}
{% endschema %}
Hi @confuze ,
I have reviewed your requirement, you just need to edit css script and the issue will be resolved. You can follow my instructions!
Step 1: Go to Admin → Online store → Theme > Edit code:
Step 2: Search for the file theme.css. And add this code snippet to the end of the file.
.Icon.Icon--search-desktop {
display: none !important;
}
Step 3: Save your code and reload this page.
=>> The result:
I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.
Have a nice day sir!
thanks my frıend. ı dıdnt try but ı guess thıs would be work.
Thanks my friend. It worked on computer view. But on the phone the search icon still appears?
Hi @confuze ,
We’re happy to see that our suggestion helped you solve the issue: https://community.shopify.com/post/2624027
With your next issue on mobile view, you can do it the same by the way:
In Step 2: Search for the file theme.css. You need to add this code snippet to the end of the file.
.Icon.Icon--search,
.Icon.Icon--search-desktop {
display: none !important;
}
And the result on the mobile view, search icon will disappears.
We hope my suggestions will fully meet your requirements this time.
If it is helpful, can you kindly give us likes and mark the solution for us?
This can be a reference for other merchants if they have an issue like you and greatly motivate us to contribute to our community.
Thanks in advance.


