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

Dawn Theme how to add the search box to banner in dawn

Dawn Theme how to add the search box to banner in dawn

Caidra
Excursionist
40 1 10

Hi 

My store is www.caidra.com and I'm on Dawn2.0.  I am using a third party app for AI search. However, for that to be useful need to be able to:
1. Add a search box to the banner

2. Customise the size & colour of the box depending on the banner image being used at the time

3. Move the Search box positioning depending on the text and image of the banner (think drag & shift on powerpoint or wix)
Most of the solutions I came across are for other themes and refer to a theme.scss file which I do not have.

Caidra_0-1666924849169.png

This is a mockup of what I am hoping to achieve.

Hoping someone can help me figure this out. Thanks

Replies 20 (20)

Caidra
Excursionist
40 1 10

@LitCommerce loved your solution on https://community.shopify.com/c/shopify-design/search-bar-in-dawn-theme/td-p/1635928 and was able to...

 

Caidra_1-1668230676420.png

Can you help to advise how I can change the colour of the box so that the text stands out. Something like the header on this page would be perfect



Also can I add this code anywhere to make the text box appear on the banner hero image?

Thank in advance.

 

LitCommerce
Astronaut
2860 684 761

Hi @Caidra,

Please send me the preview link, the link you changed the header. I will check it.

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
Caidra
Excursionist
40 1 10

The preview link to the test shop is https://gitfqwhj1p60bzz3-62235377833.shopifypreview.com

Was hoping to create the search box in the banner instead and change background to white, lik on the community page.

Thanks

LitCommerce
Astronaut
2860 684 761

Hi @Caidra,

The preview link has expired, can you resend it to me?

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
Caidra
Excursionist
40 1 10
LitCommerce
Astronaut
2860 684 761

Hi @Caidra,

Go to Assets > base.css and paste this at the bottom of the file:

@media screen and (min-width: 750px) {
  predictive-search .search__input.field__input {
        background: #fff !important;
  }
}

Hope it helps!

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
Caidra
Excursionist
40 1 10

@LitCommerce the code did make the box white but:
1. the text remained white too so disappeared - how to change the text inside the search box to black like on this page header.
2. The search box does not appear on a mobile device which is where most of my customers would log in from
Thanks for helping

LitCommerce
Astronaut
2860 684 761

Hi @Caidra,

Please send me the preview link, I will check it.

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
Caidra
Excursionist
40 1 10

Hi @LitCommerce 
The preview link is https://hhyo6koqdei27z58-62235377833.shopifypreview.com 

 

Before adding the new code: 

Caidra_0-1669019599608.png

After adding the new piece of code in the base file where both text and box is in white:

Caidra_1-1669019651415.png

Thanks for helping.

LitCommerce
Astronaut
2860 684 761

Hi @Caidra,

Go to Assets > base.css and paste this at the bottom of the file:

@media screen and (min-width: 750px) {
  predictive-search .search__input.field__input {
        color: rgb(18, 18, 18) !important;
  }
  predictive-search .field__label{
        color: rgb(18, 18, 18) !important;
  }
}

Hope it helps!

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
Caidra
Excursionist
40 1 10

@LitCommerce This worked perfectly. Only problem is that on the mobile view it still does not show up. How can I make it show in mobile view please?

Preview link is https://jiq7z2cowjccjylq-62235377833.shopifypreview.com

 

Caidra_0-1669282866923.png

Caidra_2-1669282995535.png

Thanks as always

LitCommerce
Astronaut
2860 684 761

Hi @Caidra,

Please send me the preview link with the desktop search added, I will check it for you

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
Caidra
Excursionist
40 1 10

@LitCommerce preview link of the test store in which i added the code was in post above. Hope this one works https://yp1cgwgjvtd6amo2-62235377833.shopifypreview.com 

LitCommerce
Astronaut
2860 684 761

Hi @Caidra,

Because mobile is too small so it can only be displayed like this, do you want to change it?

Screenshot.png

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
Caidra
Excursionist
40 1 10

@LitCommerce yes please this will be perfect. How do I make that happen. Here is the preview code - https://caidra.com/?_ab=0&_fd=0&_sc=1
Thanks in advance

LitCommerce
Astronaut
2860 684 761

Hi @Caidra,

Please send me the preview link, I will check it for you

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
Caidra
Excursionist
40 1 10

Hi @LitCommerce I had included link before - please find the fresh link - https://caidra.com/?_ab=0&_fd=0&_sc=1 - hope this one works. Thanks

LitCommerce
Astronaut
2860 684 761

Hi @Caidra,

I checked and it doesn't show desktop search like my previous tutorial.

Please add it and send me the preview link as before, I will check it for you

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
Caidra
Excursionist
40 1 10

@LitCommerce the problem is that your original tutorial asks for the entire header code to be replaced. However, I have added codes previously from another community member to add social icons to my header. when I try to add your code into it, all icons and search bar except the search icon disappears. 
This is the preview link to my published store with the social media icons - https://caidra.com/?_ab=0&_fd=0&_sc=1

Caidra_0-1671300995160.png

This is the preview link after I tried adding your code to the above file - https://caidra.com/?_ab=0&_fd=0&_sc=1

Caidra_1-1671301065219.png

 


Please help to advise how I can have it all on the desktop and only what you showed in your previous screenshot on the mobile.
Thanks

Caidra
Excursionist
40 1 10

Hi @LitCommerce look forward to your response. Alternatively, is there a way to move the search box to the banner / hero image since there is more space there?

 

Thanks

Monisha