Jump to content

How do I hide the 'first name' 'last name' labels on a form in Brine Template?

Recommended Posts

Posted
4 hours ago, cooperdesignstudio said:

I'm trying to hide the 'First Name' & 'Last Name' labels on a form

You can hide the first and last name captions by adding this to Design > Custom CSS:

/* Hide first and last name captions */
.field.first-name, .field.last-name {
  .caption-text {
    display: none;
  }
}

This is applicable to any form on any template.

If you would prefer to change the captions, you'll find an existing post about this here:

 

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

  • 1 year later...
Posted
On 6/17/2022 at 7:06 AM, Cresser said:

Is there a way to hide the First Name and Last Name labels on a standard site? I tried your code but it doesn't work on my custom build. I'm trying to remove the form labels and use just the placeholder copy instead to save space. 

https://www.kensingtongreen.com.au/
pw/ kensington 

You mean hide title "First name" above First Name input?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted

Yes, I'm trying to remove all the field labels and just use the placeholder text as the client wants to reduce the amount of space the form takes up. I still need the field to have the 'required' element so can't simply hide them in the form settings. 

In the attached image I've highlighted what I'm trying to hide.

 

 

required.jpg

Posted
10 hours ago, Cresser said:

Yes, I'm trying to remove all the field labels and just use the placeholder text as the client wants to reduce the amount of space the form takes up. I still need the field to have the 'required' element so can't simply hide them in the form settings. 

In the attached image I've highlighted what I'm trying to hide.

 

 

required.jpg

I see you solved this?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted

No. Sorry, I had to remove the required status and hide that label as needed to get approval from the client. If you look now you will see the issue I'm trying to find a solution for. Is it possible to hide the label field when it is required? 

Posted (edited)
On 6/21/2022 at 5:57 AM, Cresser said:

No. Sorry, I had to remove the required status and hide that label as needed to get approval from the client. If you look now you will see the issue I'm trying to find a solution for. Is it possible to hide the label field when it is required? 

Add to Design > Custom CSS

body.homepage .form-wrapper .field-list .form-item .title {
    display: none;
}

 

Edited by tuanphan

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

  • 2 years later...
Posted

The only issue with that tuanphan is it seems that hides the required field warning, so when they click the button it can look like the form submits but it is not.

  • 1 month later...
Posted
On 9/14/2024 at 7:56 AM, Mary_0221 said:

@tuanphan sorry I tagged name incorrectly. Hoping to hear back. Thank you in advance. 

You can use this to Website Tools > Custom CSS

/* Hide Name label */
#block-3d4b6b5521b4416b0296 .name .title {
    display: none !important;
}

image.thumb.png.d3788b7cf8d1f3a2021aa94680467b9c.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.