I want to make this button white, make it longer and centered . Does someone know how?
store url: https://0cait19g4z11oahc-65389560005.shopifypreview.com
A user seeks to modify their Shopify contact form button to be white, longer, and centered. An image shows the current button state, and a store preview URL is provided.
Multiple CSS solutions offered:
Most comprehensive solution (from DaisyVo and EstherBui):
</head> tag or in base.cssCurrent status:
User confirms one solution works but requests additional modification to match the button width with other form fields (phone number and message input boxes). The discussion remains open with this follow-up question unanswered.
I want to make this button white, make it longer and centered . Does someone know how?
store url: https://0cait19g4z11oahc-65389560005.shopifypreview.com
You can add this CSS in your customize theme → theme settings → Custom theme https://prnt.sc/aoWxHYbNmUzL
#ContactForm .button {
background: transparent;
border: 1px solid #fff;
color: #fff;
}
After adding this CSS the result will be like this https://prnt.sc/a3q6RqGtKncn
please don’t hesitate to reach out if you still face a problem. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Try this one.
.contact__button button.button {
background: white !important;
}
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
not working
i dont have more space there
You can add that CSS inside your base.css file.
Go to the online store → Click on action (three dot) → Edit code
Fine the file base.css add the same CSS which is mentioned in my previous comment at the end of the file and save that file.
Im not seeing in your base.css. try to add in the theme.liquid.
with this code.
And Save.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi Silenceclothing
You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file
.contact__button .button {
background: #fff !important;
width: 50% !important;
}
.contact__button {
justify-content: center !important;
display: flex !important;
}
Result:
Best,
Esther
I hope you are well. You can follow our instructions below:
1/ Shopify admin > Online store > Edit code: https://prnt.sc/M4p-gua99Uf4
2/ Search for “theme.liquid” file: https://prnt.sc/b6xveIKe-Rh2
3/ Open the file and search for tag and add the following code above tag: https://prnt.sc/KWtKYyZkDtYJ
Here is the code for Step 3:
{% style %}
.contact__button {
display: flex;
justify-content: center;
}
.contact__button > button {
background: white;
width: 180px;
}
.contact__button > button::after {
display: none !important;
}
{% endstyle %}
Please let me know if it works. Thank you!
Best,
Daisy - Avada Support Team.
thanks! is it possible to make it longer, like the same length where you can put in phone number and message?