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

i need my search bar in a different position

Solved

i need my search bar in a different position

doarchery
Tourist
10 0 1

i made this search bar rather than the icon i just need it to be centered above everything in the header and span 75% of the page width. on mobile it still is and needs to stay as just the icon.

Screenshot 2024-09-27 175608.png

Accepted Solution (1)
BSSCommerce-HDL
Shopify Partner
2305 835 907

This is an accepted solution.

Hi @doarchery

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

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
@media only screen and (min-width: 1200px) {
   .desktop-search {
      position: absolute;
      left: 50%;
      width: 100%;
      transform: translateX(-20%) !important;
   }
}
</style>

 Here is result: 

BSSCommerceHDL_0-1727492145188.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you  😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 3 (3)

BSSCommerce-HDL
Shopify Partner
2305 835 907

Hi @doarcheryCan you kindly share your store URL with us? We will check it and suggest you a solution if possible.

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

doarchery
Tourist
10 0 1

do-archery.com

BSSCommerce-HDL
Shopify Partner
2305 835 907

This is an accepted solution.

Hi @doarchery

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

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
@media only screen and (min-width: 1200px) {
   .desktop-search {
      position: absolute;
      left: 50%;
      width: 100%;
      transform: translateX(-20%) !important;
   }
}
</style>

 Here is result: 

BSSCommerceHDL_0-1727492145188.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you  😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now