We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How do I get rid of the white spaces on the contact form?

How do I get rid of the white spaces on the contact form?

MaisonBillonDon
Explorer
87 0 15

How can I get rid of the white spaces on my contact form? I've included a photo of what my contact form looks like when I'm in the contact page editor. The white spaces are circled in red. 

 

Theme:Origin

URL: billon.maison

 

Screenshot 2025-01-24 at 10.03.24 AM.png

Bravo Billón
Replies 3 (3)

CodingFifty
Shopify Partner
1102 162 191

Hi @MaisonBillonDon,


Go to Online Store, then Theme, and select Edit Code.
Search for base.css/theme.css/style.css/main.css/custom.css file Add the provided code at the end of the file.

 

 

    .section-template--15894320906306__contact-form-padding {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }

div#shopify-section-sections--15894318022722__footer{
    background: #19100b !important;
    bottom: 0px !important;
   top: 0px !important;
    margin-bottom: 36px !important;
}
}

 

 

Coding Fifty || Shopify Partner
For any custom section queries, please visit: Fiverr Profile
Found my response useful? Like it and mark as Accepted Solution!
For additional discussions, reach out via: Email ID: codingfifty@gmail.com
MaisonBillonDon
Explorer
87 0 15

This did not work.

I've included photos of what your solution looks like when implemented. 

Do you have any other ideas that may solve the problem?

 

Screenshot 2025-01-24 at 1.33.22 PM.pngScreenshot 2025-01-24 at 1.33.49 PM.png

Bravo Billón

mt686
Shopify Partner
146 12 21

To remove the white spaces at the top and bottom of the contact form, you can adjust the padding or margin of the related sections in your theme. Here's how you can do it:

  1. Custom CSS to Remove the White Spaces:

     

 

.page-width {
    padding-top: 0px; /* Removes top padding */
    padding-bottom: 0px; /* Removes bottom padding */
}

.contact-form-section {
    margin-top: 0px; /* Removes top margin */
    margin-bottom: 0px; /* Removes bottom margin */
}

 

  • Steps to Apply:

    • From your Shopify admin, go to Online Store > Themes > Customize.
    • Open the Custom CSS or Additional CSS field in the Theme Settings.
    • Paste the above code and click Save.

Note: The class names .page-width and .contact-form-section may vary depending on the theme setup. If the above code doesn't work, use your browser's inspect tool to identify the specific class names associated with the sections that have the extra white spaces.


Streamline Your Store Edits with EasyEdits

If you prefer to avoid CSS adjustments, my app, EasyEdits, makes it simple to handle design tweaks like removing white spaces. EasyEdits is designed to help Shopify merchants make these edits without the need for coding knowledge.


Hope it works out! Let me know how it goes or if you need further assistance.