Announcement Bar Covers Quick Search

Solved

Announcement Bar Covers Quick Search

martujv
Trailblazer
234 2 46

Hello!

 

My quick search is covered by the announcement bar (on mobile) and by the header's icons (on desktop).

 

 This is how it should look like, ideally:

 

- On mobile:

Captura de pantalla 2025-01-27 a las 14.45.15.png

 

- On desktop:

Captura de pantalla 2025-01-27 a las 14.45.28.png

 

However, right now it looks like this:

 

- On mobile: 

Captura de pantalla 2025-01-27 a las 14.50.40.png

 

- On desktop:

Captura de pantalla 2025-01-27 a las 14.50.50.png

 

On mobile, the announcement bar covers the quick search and it looks bad. On desktop, the header icons cover the quick search and it looks bad too.

 

My theme is Stiletto and my website is https://qcvo6udrj7yhwl92-60150284501.shopifypreview.com

 

I would appreciate any solution! Thanks in advance!

Accepted Solution (1)
theycallmemakka
Shopify Partner
1811 438 473

This is an accepted solution.

Hi @martujv ,

 

Can you try this updated code once? This should fix the issue.🤞

<style>
.shopify-section-group-header-group.announcement-bar__outer-wrapper {
    z-index: 0;
}
@media (max-width: 960px) {
   .quick-search[aria-hidden="false"] {
        --makka-announcement-height: 0px;
        --height-header: 60px;
        top: calc(var(--makka-announcement-height, 0) + var(--height-header, 0) - var(--scroll-y, 0));
    } 
}
@media (min-width: 960px) {
    .quick-search[aria-hidden="false"] {
        z-index: 9999999!important;
    }
}
</style>

 

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

View solution in original post

Replies 6 (6)

theycallmemakka
Shopify Partner
1811 438 473

Hi @martujv ,

 

I have written custom CSS for this solution. Please follow below steps and let me know your feedback.

 

Follow these Steps:

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

4) Add the following code just above tag </body>

<style>
.quick-search[aria-hidden="false"] {
    z-index: 9999999!important;
}
</style>

theycallmemakka_0-1737987274425.png

theycallmemakka_1-1737987282322.png

 

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

 

Best Regards,
Makka

 

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

martujv
Trailblazer
234 2 46

On mobile version, it doesn't appear right below the header and the header is in the background. Is there any way to make it like this:

Captura de pantalla 2025-01-27 a las 14.45.15.png

It should be right below the header

theycallmemakka
Shopify Partner
1811 438 473

Hi @martujv ,

 

Can you try replacing previous code with the bellow updated code.

 

<style>
.quick-search[aria-hidden="false"] {
    z-index: 9999999!important;
}
@media (max-width: 960px) {
   .quick-search[aria-hidden="false"] {
        --makka-announcement-height: 0px;
        --height-header: 60px;
        top: calc(var(--makka-announcement-height, 0) + var(--height-header, 0) - var(--scroll-y, 0));
    } 
}
</style>

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

martujv
Trailblazer
234 2 46

Now it's better, but the header appears dark as if it's part of the background. Is it possible to remove this effect? And Thank you for your big help!

 

How it looks now with your code:

Captura de pantalla 2025-01-27 a las 16.09.23.png

How it should look: 

Captura de pantalla 2025-01-27 a las 16.10.10.png

 

theycallmemakka
Shopify Partner
1811 438 473

This is an accepted solution.

Hi @martujv ,

 

Can you try this updated code once? This should fix the issue.🤞

<style>
.shopify-section-group-header-group.announcement-bar__outer-wrapper {
    z-index: 0;
}
@media (max-width: 960px) {
   .quick-search[aria-hidden="false"] {
        --makka-announcement-height: 0px;
        --height-header: 60px;
        top: calc(var(--makka-announcement-height, 0) + var(--height-header, 0) - var(--scroll-y, 0));
    } 
}
@media (min-width: 960px) {
    .quick-search[aria-hidden="false"] {
        z-index: 9999999!important;
    }
}
</style>

 

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

martujv
Trailblazer
234 2 46

Thank you very much! It's exactly like I wanted, and all the problems are fixed. Thank you again, really.