Change color and position on "contact us" button

Topic summary

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:

  • Initial suggestions involve adding CSS to customize theme settings or base.css file to change background color to white/transparent with white border
  • When basic solutions don’t work, responders suggest alternative file locations (theme.liquid, base.css)

Most comprehensive solution (from DaisyVo and EstherBui):

  • Add CSS to theme.liquid file before </head> tag or in base.css
  • Code changes button background to white, centers it using flexbox, and adjusts width
  • Includes visual result showing centered white button

Current 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.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

I want to make this button white, make it longer and centered . Does someone know how?

store url: https://0cait19g4z11oahc-65389560005.shopifypreview.com

1 Like

@silenceclothing

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!

Hi @silenceclothing

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.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.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “theme. Liquid” file. Find the tag and paste the code below before the tag.

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

Hi @silenceclothing

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?