Jump to content

Seamless newsletter CSS

Recommended Posts

Hi everyone!

I'm looking for CSS to adjust my newsletter block in a footer. I would like it to be almost seamless and small. I've attached a couple examples of what sort of design I'm after.

First and most preferred option - field for entering an email address is underlined with the text "Join our Newsletter". sign up button is a simple arrow next to the email field. Example with a dark background attached (used for locked screen).

Alternatively second option is to make a button called Join our Newsletter and field next to it for entering an email address. Very compact and minimal sizing. Example on the light background attached. 

I've tried dozens of codes by now but it's still too chunky. Would it be possible to edit newsletter block this much on squarespace?

Screen Shot 2023-01-10 at 2.07.09 pm.png

Screen Shot 2023-01-10 at 2.06.13 pm.png

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Just solved a case this morning. You can add this code to Design > Custom CSS


.newsletter-form-fields-wrapper.form-fields {
    width: 90%; 
    float: left
}
.newsletter-form-button-wrapper.submit-wrapper {
    width: 10%;
    clear: left;
    padding-left: 0;
}

.newsletter-block .newsletter-form-field-wrapper {
    min-width: unset;
    width: 100%;
    padding-right: 0;
}

[data-form-id="63bd7555d73d207c975094cf"] button.newsletter-form-button {
  padding-left: 0 !important;
  padding-right: 0 !important;
  border: 0 !important;
  margin-left: -5.5em !important;
}

.sqs-button-element--primary:after {
  margin: 0;
  border: unset;
  font-size: 20px;
  padding-left: 0;
  transition: 0.3s;
}

.sqs-block-newsletter .newsletter-form-field-element {
  border-bottom: 1px solid;
  background: rgb(243, 239, 236);
  border-top: unset;
  border-left: unset;
  border-right: unset;
}

.sqs-block-newsletter .newsletter-form-field-element:placeholder {
  color: black !important;
}

.primary-button-style-outline .sqs-block-newsletter .newsletter-form-button.sqs-button-element--primary:hover {
  background: unset !important;
}

.sqs-button-element--primary:hover:after {
    color: #fff !important;
}



@media screen and (min-width: 992px) {
.newsletter-form-body {
  width: 80%;
}}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.