Jump to content

Line instead of e-mail box in Newsletter Form, when error occurs

Go to solution Solved by tuanphan,

Recommended Posts

Hi there,

I'm reaching out because I'm encountering an issue with the CSS code for my newsletter form. I customized the form style, specifically by replacing the email address box with a simple line. The problem arises whenever an error occurs in the form submission ('email address is required'): the line disappears, and the box reverts to its default appearance. I would like the line to remain visible even when an error occurs, maintaining the consistent design of the form.

Can anyone help me solve this issue?

Thank you!

 
Link to comment
  • Replies 6
  • Views 331
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
On 4/25/2024 at 6:05 PM, FFederica said:

@tuanphan I'd like the white rectangle to disappear. I've attached a screenshot that displays it.

Screenshot 2024-04-25 alle 13.03.30.png

You can use this CSS code

body.homepage input {
    outline-color: transparent !important;
}

 

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!)

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.