How to customize a contact form field?

Solved

How to customize a contact form field?

INFRA
Shopify Partner
207 0 72

Hi there, I would like to customize the contact form with the following:

- rounded input field corners (30)

- add 1 field named "Project Location"

 

And how do I change the 'comment' text into "tell us about your project"?

 

website

passw: skoffi

 

Thanks so much!

Accepted Solution (1)

pooja_d_92
Shopify Partner
132 16 19

This is an accepted solution.

Hey,
 
Please try this code and paste it in theme.css file:
form#ContactForm .field input {
    box-shadow: none;
}
form#ContactForm .field::after {
    border-radius: 30px;
}
 
Add this code in form:
<div class="field">
<input class="field__input" autocomplete="location" type="text" id="ContactForm-location" name="contact[Project Location]" value="" placeholder="Project Location">
<label class="field__label" for="ContactForm-location">Project Location</label>
</div>
 
Thank you
Pooja D.
Pooja Devi

View solution in original post

Replies 3 (3)

pooja_d_92
Shopify Partner
132 16 19

This is an accepted solution.

Hey,
 
Please try this code and paste it in theme.css file:
form#ContactForm .field input {
    box-shadow: none;
}
form#ContactForm .field::after {
    border-radius: 30px;
}
 
Add this code in form:
<div class="field">
<input class="field__input" autocomplete="location" type="text" id="ContactForm-location" name="contact[Project Location]" value="" placeholder="Project Location">
<label class="field__label" for="ContactForm-location">Project Location</label>
</div>
 
Thank you
Pooja D.
Pooja Devi
INFRA
Shopify Partner
207 0 72

Looks great, thanks so much!

Jahid-KlinKode
Excursionist
145 1 5

Hey @INFRA, upgrade your Shopify contact form with ease by following the instructions in this YouTube video, covering text, dropdown, radio, and checkbox options: