Jump to content

Css for newsletter - filling in text turns to black

Recommended Posts

Site URL: https://www.para-para.world/

Hello from the Uk!

 

I have created a newsletter capture form on my website. I've managed to get the font to be white but when you fill it out it turns back to black and you can't see what you're typing. Also a big white outline appears around the field when you click on it.

Can anyone help me fix this? Also is it possible to align the placeholder" first, last, email" to the left?

I've attached some screenshots.

My custom CSS is: 

 

.newsletter-block .field-element::placeholder {
  color: white;
}

/*** NEWSLETTER FORM FIELDS ***/ 

.newsletter-form-field-element { 

background: none !important;

border-top: none !important;

border-left: none !important;

border-right: none !important;

border-bottom: solid 2px white     !important; 


}

 

Many thanks!! 

George

 

Screenshot 2021-11-24 at 11.15.03.png

Screenshot 2021-11-24 at 11.15.17.png

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

1 hour ago, GeorgeW25 said:

Site URL: https://www.para-para.world/

Hello from the Uk!

 

I have created a newsletter capture form on my website. I've managed to get the font to be white but when you fill it out it turns back to black and you can't see what you're typing. Also a big white outline appears around the field when you click on it.

Can anyone help me fix this? Also is it possible to align the placeholder" first, last, email" to the left?

I've attached some screenshots.

My custom CSS is: 

 

.newsletter-block .field-element::placeholder {
  color: white;
}

/*** NEWSLETTER FORM FIELDS ***/ 

.newsletter-form-field-element { 

background: none !important;

border-top: none !important;

border-left: none !important;

border-right: none !important;

border-bottom: solid 2px white     !important; 


}

 

Many thanks!! 

George

 

Screenshot 2021-11-24 at 11.15.03.png

Screenshot 2021-11-24 at 11.15.17.png

Hi @GeorgeW25,

You can try adding to Home > Design > Custom Css

.newsletter-form-field-element:focus {
  outline: none;
}

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
2 hours ago, GeorgeW25 said:

@bangank36 amazing thanks so much. Do you know how to change the font color for when people write in their email. At the moment as soon as they type the font turns to black. 

Many thanks,

George

With the color of text, you can try add the following one

.newsletter-form-field-element {
  /*style color when input data*/
  color: orange !important;
}

.newsletter-form-field-element::placeholder {
  /*style color for placeholder if you need to change*/
  color: #fff !important;
}

Hope it can help you

Edited by bangank36

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

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.