We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Why has the search icon disappeared from my mobile site header?

Solved

Why has the search icon disappeared from my mobile site header?

jennarose
Pathfinder
171 0 34

Hi!

 

My URL is www.daughterofanangel.com

 

it seems the little search icon has disappeared from my site on mobile. It is usually next to the cart icon on the header. How can I get this back?

 

Thank you in advance!

Accepted Solution (1)

PageFly-Oliver
Shopify Partner
878 190 191

This is an accepted solution.

Hi @jennarose ,

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: Paste the below code at the bottom of the file -> Save

<style>
@media(max-width:767px){
#shopify-section-header .header__icons .header__search{display:block !important}
}
</style>



Hope my solution works perfectly for you!

Best regards,

Oliver | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

View solution in original post

Replies 11 (11)

Moeed
Shopify Partner
7764 2082 2567

Hey @jennarose 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
details-modal.header__search:nth-child(1) {
    display: block !important;
}
</style>

RESULT:

Moeed_0-1694863960392.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


jennarose
Pathfinder
171 0 34

I did it but I still dont see it 😞

Moeed
Shopify Partner
7764 2082 2567

Hey @jennarose 

 

There's some code in your files which is hiding the search icon. I suggest you to remove that code and then use my code again.

 

Best Regards,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


jennarose
Pathfinder
171 0 34

how can I find that? I never added a code to hide it.. the seach icon was there the other day.. not sure what happend

Moeed
Shopify Partner
7764 2082 2567

There's a CSS code that is hiding the search icon, if you can't locate that code then you can provide me collaborator access and I can do it for you.

 

Best Regards,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


jennarose
Pathfinder
171 0 34

Screenshot 2023-09-16 at 7.55.29 AM.png

 

would it be any of this?

Guleria
Shopify Partner
4299 825 1189

Hello @jennarose ,

 

Follow these steps:

1. Go to Online Store -> Theme -> Edit code

2. Open your base.css file and paste the following code below:

@media screen and (max-width: 768px){
.header__icons .header__search {
    display: inline-block !important;
}
}

 

Thanks

- Elevate Your Store with Expert Shopify Services. Email: guleriathakur43@gmail.com - Need a quick fix or a tailored customization? I’ve got you covered.
- Looking to enhance your pages? Try GEMPAGES- a powerful drag & drop page builder.
- Let’s make your store stand out. Get in touch today!
- My Apps: Productify Groups – Smart product grouping made easy.
jennarose
Pathfinder
171 0 34

thank you but that didnt work 😞

PageFly-Oliver
Shopify Partner
878 190 191

This is an accepted solution.

Hi @jennarose ,

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: Paste the below code at the bottom of the file -> Save

<style>
@media(max-width:767px){
#shopify-section-header .header__icons .header__search{display:block !important}
}
</style>



Hope my solution works perfectly for you!

Best regards,

Oliver | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

jennarose
Pathfinder
171 0 34

It worked.. THANK YOU SO MUCH!

PageFly-Oliver
Shopify Partner
878 190 191

you are welcome 😍

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.