Hello,
I want to remove the “phone” field from the contact form. I’m using Debut theme.
Hello,
I want to remove the “phone” field from the contact form. I’m using Debut theme.
Hey, @KKW
Note: duplicate your theme file before making any coding changes for backup purposes just in case anything breaks.
You can do this by editing the code for the contact form theme file. Depending on your theme, your code may vary. However, you should have a theme file called contact-form.liquid in your sections folder within your theme files. This can be accessed by going to your admin > online store > themes > actions > edit code.
You will want to deactivate the phone field code by wrapping {% comment %} {% endcomment %} around the code. This should be found on lines 66 to 69 of your code. I’ve attached a screenshot to show you how I wrapped the comment tags around the phone field code, which essentially hides it from your contact form:
Once completed, your contact form should look more along the lines of this:
If there is anything else I can help you with, please let me know.
Yaaay! Thank you so much, it worked!
Glad that worked, @KKW ! If there is anything else I can help you with, please let me know.