Solved

How to change size of Contact Form in Studio Theme

ntlee
New Member
5 0 0

Who can help? I want to change the size of the contact form in Studio Theme

Just want to play around with different sizes until it fits with the overall design

I tried some CSS suggestions but they don't work with the Studio theme

Thanks in advance

Accepted Solution (1)
websensepro
Shopify Partner
1040 144 149

This is an accepted solution.

Hi @ntlee,

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file base.css

Step 3: Add code 

 

 

 

.contact {
    max-width: 1200px !important;
}

@media only screen and (max-width: 998px) {
    .contact {
        max-width: 600px !important;
    }    
}

 

 

 


 Thanks

Need a Shopify developer?
Hire us at WebSensePro
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel or buy us a Cofee here

View solution in original post

Replies 9 (9)

websensepro
Shopify Partner
1040 144 149

Hi @ntlee,

Could you please share your store url link?

Thanks

Need a Shopify developer?
Hire us at WebSensePro
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel or buy us a Cofee here
ntlee
New Member
5 0 0
ThePrimeWeb
Shopify Partner
2038 589 463

Hey @ntlee,

 

Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.

 

1200px is desktop, 600px is mobile

<style>
.contact {
    max-width: 1200px !important;
}

@media only screen and (max-width: 989px) {
    .contact {
        max-width: 600px !important;
    }    
}
</style>

 

Screenshot is for reference only, the correct code to paste is the one shown above.

ThePrimeWeb_0-1711368171081.jpeg

 

Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!
ntlee
New Member
5 0 0

Thanks ThePrimeWeb, but I don't have the option to customize Liquid. I think it's because the free template doesn't allow it. 

websensepro
Shopify Partner
1040 144 149

This is an accepted solution.

Hi @ntlee,

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file base.css

Step 3: Add code 

 

 

 

.contact {
    max-width: 1200px !important;
}

@media only screen and (max-width: 998px) {
    .contact {
        max-width: 600px !important;
    }    
}

 

 

 


 Thanks

Need a Shopify developer?
Hire us at WebSensePro
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel or buy us a Cofee here
ntlee
New Member
5 0 0

This works, but it only changes the top part, name and email field. It doesn't affect the bottom part of the contact form.

websensepro
Shopify Partner
1040 144 149

Alright, you want to adjust the size of the contact form's bottom part?

Need a Shopify developer?
Hire us at WebSensePro
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel or buy us a Cofee here
ntlee
New Member
5 0 0

i tried this code again today and somehow today it came through, it works!

Raj-webdesigner
Shopify Partner
250 55 60

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file base.css

Step 3: Add code 

 

Try This Code 

#shopify-section-template--20958478795084__contact_form_RFiRPY .color-scheme-1.gradient .contact.page-width--narrow {
    max-width: 1000px !important;
    padding: 0 50px 50px;
}

If you require further help to optimize your store, please don’t hesitate to reach out.


This contribution will always benefit you and you will get my full help easily and you can contact me easily.


Your Willpower Contribution Link

:- Contribution

Contect On My Mail :-Mail@gmail.com