Jump to content
Go to solution Solved by tuanphan,

Recommended Posts

Hello! I'm trying to recreate the newsletter block of the image below but am having trouble. Here is the code I've written so far. Website is eleida.squarespace.com password is applejuice2024.

I've added the "Stay In Touch" and "Sign up.." copy as a text block in Squarespace rather than part of the newsletter block.

/**NEWSLETTER**/
/**newsletter block**/
div.newsletter-block input[name="email"], div.newsletter-block input[name="email"]:focus {
padding-left: 0px !important;
border: none !important;
border-bottom: 0.5px solid #FFF !important;
background: none !important;
}

/**newsletter button**/
#siteWrapper.site-wrapper .sqs-button-element--primary{
font-family: "Apercu Mono" !important;
text-align: left;
color: #FFFFFF !important;
background-color: transparent !important;
text-transform: uppercase !important;
margin-left: -10px;
}

/**newsletter input field**/
.field.email input, .field.email input::placeholder, .field.email input:focus{
font-family: "Apercu Mono";
padding-left: 0px !important;
font-size: 0.6rem !important;
text-transform: uppercase;
text-align: left;
color: white !important;
}

 

Screenshot 2024-04-04 at 8.03.33 PM.png

Link to comment
  • Replies 5
  • Views 666
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution
On 4/8/2024 at 6:59 AM, trececreative said:

A little bit, but I'm trying to have the button sit under the email field instead of beside it and can't figure that out

You try this CSS code

.newsletter-form-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.newsletter-form-body div {
    width: 90% !important;
    min-width: unset !important;
}
.newsletter-block .newsletter-form-button-wrapper {
    text-align: left !important;
}

image.png.af6e46a3cbe3f68d8c5c8a1e58de1da6.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!)

Link to comment
9 hours ago, tuanphan said:

You try this CSS code

.newsletter-form-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.newsletter-form-body div {
    width: 90% !important;
    min-width: unset !important;
}
.newsletter-block .newsletter-form-button-wrapper {
    text-align: left !important;
}

image.png.af6e46a3cbe3f68d8c5c8a1e58de1da6.png

It worked, thank you so much!

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.