Re: Reducing width on contact form section

Reducing width on contact form section

jeffreym
Explorer
83 2 12

1. I would like to reduce the width of the contact us section, It is to chunky.
2. To reduce the thickness of the button below the contact us section, I would like the width to be the same as the just fixed above section though it is currently to thick

 

url: hygiadental.com

pw: melek

 

Thank you in advanced guys!

 

Screenshot 2024-07-23 at 6.07.41 PM.png

Replies 4 (4)

Huptech-Web
Shopify Partner
909 186 189

Hi @jeffreymKindly review and make the necessary adjustments to the code as indicated below.

Additionally, add "box-shadow: none" to the .button::after class.

A screenshot has been provided for reference.

#ContactForm .contact__button .button {
    background: #d4b61c;
    width: 100%;
    color: #fff;
    border-radius: 0!important;
    min-height: 4.5rem;
    line-height: normal;
}

Screenshot_27.pngScreenshot_28.png

Feel free to reach out if you have any additional questions. If this solution is helpful, please consider liking and accepting it.
S.P

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required

Sweans
Shopify Partner
397 76 117

Hey @jeffreym ,

To make the "Contact Us" section slimmer and adjust the button's thickness, you'll need to make some CSS changes. Here’s a quick guide:

Step 1: Go to the "Edit Code" section in Shopify Backend → Sales Channel → Online Store → Click on the three dots near the active theme customize button → Select "Edit Code"

Sweans_0-1721727518810.png

 

Step 2: Search for base.css, global.css, or theme.css in the search bar

Sweans_1-1721727541983.png

 


At the end of the CSS, add the following code :

.contact.page-width.page-width--narrow {
max-width: 500px; /* Adjust width as needed */
}

#ContactForm .contact__button .button {
width: fit-content;
border-radius: 100% !important;
}

If you need to adjust the height of the button, you can add the following code:

#ContactForm .contact__button .button {
width: fit-content;
border-radius: 100% !important;
min-height: 50px; /* Adjust height as needed */
}

 

Step 3: Save and check the result

Sweans_2-1721727640822.png

If you need further assistance, feel free to reach out!
I hope this helps! If it does, please like it and mark it as a solution!

Regards,
Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at info@sweans.com regarding any help.
- To know more about me check out www.sweans.com

jeffreym
Explorer
83 2 12

This was helpful thankyou! I just made the mistake of deleting my base.css file text so now I might have to restart dang.

Sweans
Shopify Partner
397 76 117


Hi @jeffreym ,

To revert your base.css file, follow these steps:

Step 1: Repeat Step 1 from my previous reply.
Step 2: Open the Assets folder and click Add a new asset → Create a blank file → Set the file name as base.

image_2024_07_24T05_13_06_580Z.png


Step 3: Go back to your Admin Theme page and add the same theme you added to your online store.

image_2024_07_24T05_14_55_472Z.png
Step 4: After the theme is installed, click on the three dots near the active theme's Publish button → Select Edit Code.

image_2024_07_24T05_15_43_518Z.png
Step 5: Search for base.css, copy all the CSS codes, and paste them into your newly added base.css in your theme.

If you need further assistance, feel free to reach out!
I hope this helps! If it does, please like it and mark it as a solution!

Regards,
Sweans

- Was my reply helpful? Please Like and Accept the Solution or let me know by Buying me coffee!
- Want to modify or custom changes on store Hire me.
- Feel free to contact me at info@sweans.com regarding any help.
- To know more about me check out www.sweans.com