Hide page and blog page on search dawn theme

hi,

i need hide page and blog page on search please thx

Hi @Nico38 ,

You can add this input in the search form:


If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.

where add the code ?

@Nico38
It’s custom work, Kindly Share your Store URL,
So that i can help you.

@Zworthkey

www.street-style.fr

@Nico38
Kindly Share an Screenshot which you want to hide,
So that i can get it properly and fix it.

Thank you.

@Zworthkey i need hide all page on search

@Nico38
Sorry i can’t find this page, Send me the page link,

@Zworthkey https://www.street-style.fr/search?q=f&options%5Bprefix%5D=last

@Nico38

if you hide , Everything Should be Hide,
They contains the some page conditions, so that’s why its occur,
You have to hire Someone to fix it.

Hi @Nico38 ,

I can’t access your admin, so I’m not sure the exact location of the code. You can go to Edit code → Find header.liquid file → In this file you search for the word ā€œsearchā€ or ā€œformā€. You can then capture the location of that code for us to see.

Thanks

{%- if section.settings.logo_position == ā€˜top-center’ or section.settings.menu == blank -%}

{%- if settings.predictive_search_enabled -%} {%- endif -%}
{{ 'general.search.search' | t }}

{%- if settings.predictive_search_enabled -%}


{%- endif -%}

{%- if settings.predictive_search_enabled -%} {%- endif -%}
{%- endif -%}

Hi @Nico38 ,

You try below code:

{%- if section.settings.logo_position == 'top-center' or section.settings.menu == blank -%}

{%- endif -%}

If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.

@AvadaCommerce don’t work sorry^^