How to make the Search Bar box outline bolder

Solved

How to make the Search Bar box outline bolder

FlashFab
Tourist
6 0 4

Hello!

 

Here is the website:

https://mahindradirectparts.com/

 

Theme: Avenue

 

How can I make the search bar box outline bolder so it is more noticeable? It turns bold when you click in it, how do I make that the permeant style?

Accepted Solution (1)

BSSCommerce-B2B
Shopify Partner
1972 564 568

This is an accepted solution.

Hi @FlashFab 

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the file custom.css. Search for the following CSS snippet

.search-field.section-color {
    box-shadow: inset 0 0 0 2px var(--black), inset 0 0 0 3px var(--white);
}

If it helps you, please like and mark it as the solution.

Best Regards

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

View solution in original post

Replies 7 (7)

BSSCommerce-B2B
Shopify Partner
1972 564 568

@FlashFab ,

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the file theme.liquid.

Step 3. Add this code above </body>

 

<style>
.search-form.search-form-header > span {
  border-width:2px!important
}
</style>

 

Result:

BSSCommerceB2B_0-1724849522442.png



B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

BSSCommerce-B2B
Shopify Partner
1972 564 568

This is an accepted solution.

Hi @FlashFab 

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the file custom.css. Search for the following CSS snippet

.search-field.section-color {
    box-shadow: inset 0 0 0 2px var(--black), inset 0 0 0 3px var(--white);
}

If it helps you, please like and mark it as the solution.

Best Regards

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

topnewyork
Astronaut
1320 161 220

Hi @FlashFab , 

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

 

 

 

<style>
.static-search input[type="search"].search-field {
    border: 2px solid var(--customer_font_color) !important;
  }
</style>

 

 

Or the below code:

 

<style>
.search-form.search-form-header > span {
  border-width:2px !important;
}
</style>

 

Or the below:

<style>
input[type="search"].search-field {
    box-shadow: inset 0 0 0 4px var(--black), inset 0 0 0 4px var(--white);
}
</style>

 

 

 

Result:

topnewyork_0-1724849519310.png

And

topnewyork_0-1724849781540.png

And

topnewyork_0-1724850091387.png

 

Use the one that fits your needs

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month

BSS-TekLabs
Shopify Partner
2401 695 832

- Here is the solution for you @FlashFab 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the theme.liquid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.

<style>
.static-search input[type="search"].search-field {
    border: 3px solid black !important;
}
</style>

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

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


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


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

BSSCommerce-HDL
Shopify Partner
2305 835 909

Hi @FlashFab

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>
input[type="search"].search-field {
    box-shadow: inset 0 0 0 2px var(--black), inset 0 0 0 3px var(--white);
}
</style>

 Here is result: 

BSSCommerceHDL_0-1724849671674.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

Huptech-Web
Shopify Partner
1169 234 264

Hello @FlashFab, to do this just write this below code in your CSS file.

1) Search bar one CSS code.

.static-search input[type="search"].search-field {
    box-shadow: inset 0 0 0 2px var(--customer_font_color), inset 0 0 0 3px var(--white);
}

 2) Search bar second CSS code.

.search-section .text-center input[type="search"].search-field {
    box-shadow: inset 0 0 0 2px var(--black), inset 0 0 0 3px var(--white);
}

Here is the screenshot of the same:-
Search-bar.png
Feel free to reach out if you have any additional questions. If this solution is helpful, please consider liking and accepting it.
S.P

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required

dws_pvt_ltd
Shopify Partner
369 69 87

Hello @FlashFab, Please follow these steps to add this CSS code:
1. Go to your Online Store
2. Click on "Themes"
3. Select "Edit code"
4. Open your CSS file.
5. open "styles.accessories.css"
6. Add the following code at the end of the file.

 

.static-search input[type="search"].search-field {
    color: var(--customer_font_color);
    border: 2px solid var(--customer_font_color); /* change this border none to this value */
    height: auto;
    margin: 0;
    min-height: auto;
    padding: calc(var(--master_spacing) / 4) calc(var(--master_spacing) / 2);
}

.static-search .search-form.search-form-header > span button {
    background: none;
    color: var(--customer_font_color);
    height: auto;
    padding: 0; 
    border: 2px solid var(--customer_font_color); /* add this new CSS */
}

 

dws_pvt_ltd_0-1724852408055.png


Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.

Helpful? then please Like and Accept the Solution.
For any inquiries, please feel free to contact via WhatsApp and Email: sales@dolphinwebsolution.com.
For more information visit our website Dolphin Web Solution Pvt Ltd.