border issue on contact form - shopify dawn

Solved

border issue on contact form - shopify dawn

michaeltt
Tourist
7 0 1

Hi Shopify Community,

I’m experiencing some issues with the styling of my contact form and would greatly appreciate some help.

Issues:

  1. Double Borders on the Comment Box: The "Comment" text area displays a doubled border, even when it hasn't been clicked or focused. I'd like to fix this so it has a single consistent border.

  2. Double Borders on the Phone Field When Clicked: The "Phone" field shows a doubled border when I click or focus on it. Again, I'd like the border to remain a single, consistent thickness throughout.

Requirements:

  • Consistent Border Thickness: I need the borders for all fields (including the "Phone" and "Comment" fields) to be single and maintain a consistent thickness whether they are clicked or not.
  • White Placeholder Text and Borders: The placeholder text and borders for all fields should be white, as the form has a dark background.
  • Send Button: The "Send" button should remain the same — solid white with "Send" in black.

I’ve tried adjusting the CSS with border-width and box-shadow, but I can’t seem to remove the doubled borders on the "Comment" and "Phone" fields.

Any suggestions on how to resolve this would be greatly appreciated!

Thanks in advance for your help!

Screenshot 2024-09-09 at 1.03.43 PM.png

Accepted Solution (1)

BSSCommerce-B2B
Shopify Partner
1718 512 575

This is an accepted solution.

@michaeltt ,

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

Step 2. Find the file theme.liquid.

Step 3. Add this code before </body>

<style>
#ContactForm .field:before,
#ContactForm .field:after{
   display: none!important
}
#ContactForm-phone {
   border: 1px solid white!important;
}
</style>

Result for you:

BSSCommerceB2B_0-1725852375134.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

View solution in original post

Replies 3 (3)

BSSCommerce-B2B
Shopify Partner
1718 512 575

This is an accepted solution.

@michaeltt ,

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

Step 2. Find the file theme.liquid.

Step 3. Add this code before </body>

<style>
#ContactForm .field:before,
#ContactForm .field:after{
   display: none!important
}
#ContactForm-phone {
   border: 1px solid white!important;
}
</style>

Result for you:

BSSCommerceB2B_0-1725852375134.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

michaeltt
Tourist
7 0 1

this worked perfectly, thank you so much for your assistance

BSSCommerce-B2B
Shopify Partner
1718 512 575

@michaeltt , glad to help you 😍

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