Jump to content

Newsletter block code not working

Go to solution Solved by sorca_marian,

Recommended Posts

Posted
I have been trying to update my newsletter block styling on the website however the code I have is either outdated or not working - although I have used it on another SS site before. I want to make the input cells/blocks an underline design as per the example attached.Any help would be appreciated! 

Β 

Screenshot 2024-07-11 at 12.50.49 pm.png

Screenshot 2024-07-11 at 12.51.03 pm.png

  • Replies 13
  • Views 1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Posted

You might be using older CSS selectors for a previous HTML structure.
Do you know how to inspect the elements through developer tools?

Β πŸ‘¨β€πŸ”§πŸ‘¨β€πŸ’»Β Squarespace plugins

πŸ™‹β€β™‚οΈΒ Squarespace Custom Web Development & Design Services

πŸ“…Β Todoist alternative | Increase your ProductivityΒ 

πŸ“ΉΒ Squarespace Tutorials for free - YouTubeπŸ“ΉΒ 

πŸ’―πŸš€ I have worked on over 300 Squarespace sites with custom code for over 9 years

πŸ™‹β€β™‚οΈΒ Let's connect on LinkedIn

Β 

Posted

Can you send a link to a site you want this styling?
Are you aware of the new styling options for forms through SQSP Editor?

Β ?

Β πŸ‘¨β€πŸ”§πŸ‘¨β€πŸ’»Β Squarespace plugins

πŸ™‹β€β™‚οΈΒ Squarespace Custom Web Development & Design Services

πŸ“…Β Todoist alternative | Increase your ProductivityΒ 

πŸ“ΉΒ Squarespace Tutorials for free - YouTubeπŸ“ΉΒ 

πŸ’―πŸš€ I have worked on over 300 Squarespace sites with custom code for over 9 years

πŸ™‹β€β™‚οΈΒ Let's connect on LinkedIn

Β 

Posted

Is this the desired result?
Β 

input[name="email"] {
    background : transparent!important;
    color : rgb(237, 191, 42);
    text-align : center;
}

input[name="email"]::placeholder {
    color : rgb(237, 191, 42)!important;
    text-align : center;
}

input[name="email"] {
    border-bottom : 1px solid rgb(237, 191, 42)!important;
}

Β 

Screenshot 2024-07-11 at 06.10.20.png

Β πŸ‘¨β€πŸ”§πŸ‘¨β€πŸ’»Β Squarespace plugins

πŸ™‹β€β™‚οΈΒ Squarespace Custom Web Development & Design Services

πŸ“…Β Todoist alternative | Increase your ProductivityΒ 

πŸ“ΉΒ Squarespace Tutorials for free - YouTubeπŸ“ΉΒ 

πŸ’―πŸš€ I have worked on over 300 Squarespace sites with custom code for over 9 years

πŸ™‹β€β™‚οΈΒ Let's connect on LinkedIn

Β 

Posted

sorry @sorca_marianΒ I added a couple of lines to alter the text styling to make it uppercase + added text spacing. The text spacing has applied however the uppercase hasn't. Would you know why?:

input[name="email"] {
Β  Β  background : transparent!important;
Β  Β  color : rgb(237, 191, 42);
Β  Β  text-align : center;
}

input[name="email"]::placeholder {
Β  Β  color : rgb(237, 191, 42)!important;
Β  Β  text-align : center;
Β  Β  font-style: uppercase;
Β  Β  letter-spacing:3px;
}

input[name="email"] {
Β  Β  border-bottom : 1px solid rgb(237, 191, 42)!important;
}

Posted (edited)

One rule you added is not valid.Β 

I updated the code with uppercase and letter spacing.
Don't forget to mark my answer as the solution πŸ™‚

input[name="email"] {
    background : transparent!important;
    color : rgb(237, 191, 42);
    text-align : center;
}

input[name="email"]::placeholder {
    color : rgb(237, 191, 42)!important;
    text-align : center;
    text-transform : uppercase;
    letter-spacing:3px;
}

input[name="email"] {
    border-bottom : 1px solid rgb(237, 191, 42)!important;
}

Β 

Screenshot 2024-07-11 at 06.21.16.png

Edited by sorca_marian

Β πŸ‘¨β€πŸ”§πŸ‘¨β€πŸ’»Β Squarespace plugins

πŸ™‹β€β™‚οΈΒ Squarespace Custom Web Development & Design Services

πŸ“…Β Todoist alternative | Increase your ProductivityΒ 

πŸ“ΉΒ Squarespace Tutorials for free - YouTubeπŸ“ΉΒ 

πŸ’―πŸš€ I have worked on over 300 Squarespace sites with custom code for over 9 years

πŸ™‹β€β™‚οΈΒ Let's connect on LinkedIn

Β 

Posted (edited)

Thank you @sorca_marian! I just noticed something (so sorry to bother you again!)

The field has a blue border around it? Its faint but its obvious on a bright screen

Screenshot 2024-07-11 at 1.35.49 pm.png

Edited by Lnoon18
Posted

Is this on another page?

Β πŸ‘¨β€πŸ”§πŸ‘¨β€πŸ’»Β Squarespace plugins

πŸ™‹β€β™‚οΈΒ Squarespace Custom Web Development & Design Services

πŸ“…Β Todoist alternative | Increase your ProductivityΒ 

πŸ“ΉΒ Squarespace Tutorials for free - YouTubeπŸ“ΉΒ 

πŸ’―πŸš€ I have worked on over 300 Squarespace sites with custom code for over 9 years

πŸ™‹β€β™‚οΈΒ Let's connect on LinkedIn

Β 

  • Solution
Posted

Try this codeΒ 

input[name="email"] {
    background : transparent!important;
    color : rgb(237, 191, 42);
    text-align : center;
    border : none!important;
    border-bottom : 1px solid rgb(237, 191, 42)!important;
}

input[name="email"]::placeholder {
    color : rgb(237, 191, 42)!important;
    text-align : center;
    text-transform : uppercase;
    letter-spacing:3px;
}

Β 

Β πŸ‘¨β€πŸ”§πŸ‘¨β€πŸ’»Β Squarespace plugins

πŸ™‹β€β™‚οΈΒ Squarespace Custom Web Development & Design Services

πŸ“…Β Todoist alternative | Increase your ProductivityΒ 

πŸ“ΉΒ Squarespace Tutorials for free - YouTubeπŸ“ΉΒ 

πŸ’―πŸš€ I have worked on over 300 Squarespace sites with custom code for over 9 years

πŸ™‹β€β™‚οΈΒ Let's connect on LinkedIn

Β 

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.