Jump to content

Font Color Change in Subscription Box

Recommended Posts

Posted
1 minute ago, tuanphan said:

Add to Home > Design > Custom CSS


.newsletter-form-field-wrapper input:focus {
    color: black;
}

 

Thank you so much @tuanphan - is there a way to make it stay black? It types black now but when I go to the next field it goes back to white. 

 

Posted
2 minutes ago, NWBeef said:

Thank you so much @tuanphan - is there a way to make it stay black? It types black now but when I go to the next field it goes back to white. 

 

.newsletter-block .newsletter-form-field-element {
    color: black;
}

 

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

  • 1 month later...
Posted

@tuanphan This post helped me correct an issue with text not showing in the email form field when a user was entering their email address within the newsletter block - thank you! Is there a way by either adding CSS or add HTML in the post-submit field within the edit portion of the newsletter block to add a white box around the post-submit Thank you message? My client is worried users are missing or having a hard time reading the post-submit Thank you message. Thank you in advance.

Posted
11 hours ago, ashlee said:

@tuanphan This post helped me correct an issue with text not showing in the email form field when a user was entering their email address within the newsletter block - thank you! Is there a way by either adding CSS or add HTML in the post-submit field within the edit portion of the newsletter block to add a white box around the post-submit Thank you message? My client is worried users are missing or having a hard time reading the post-submit Thank you message. Thank you in advance.

Can you share link to form on your client' site?

If you can't share link here, you can send to my email via link in signature

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

Posted
5 hours ago, ashlee said:

@tuanphan Thank you for replying back. I somehow missed the notification yesterday. Here is a link to my clients site, https://www.rosabellawinery.com/. The newsletter form is towards the bottom of the page. Ashlee

Where form, can you take screenshot? I don't see any forms

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

  • 2 months later...
Posted

@tuanphan Used this code to help in a similar situation, thank you! Unlike @ashlee site, where it's just an email address input, I have three blocks, first name, last name and email but because it's white font on black background, the fields don't show up to direct customer which box is which. Can you help with code for this @tuanphan? Much appreciated!

Posted
8 minutes ago, amysaba said:

@tuanphan Used this code to help in a similar situation, thank you! Unlike @ashlee site, where it's just an email address input, I have three blocks, first name, last name and email but because it's white font on black background, the fields don't show up to direct customer which box is which. Can you help with code for this @tuanphan? Much appreciated!

Can you share link to page where you insert subscription box?

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

Posted
On 5/3/2020 at 1:56 AM, luisgonzalez said:

@tuanphan This is all very helpful, but was wondering how to get the "first name" last name" email" text to appear when I remove the text box and only have an underline. any thoughts on that?

 

Can you share link to page in screenshot?

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

  • 4 weeks later...
Posted

@luisgonzalez, @tuanphan, did you end up finding a solution to this? I have the same question.

 

Here's the test site (newsletter in the footer):

https://plantain-grasshopper-zlwt.squarespace.com/test

password: view

 

And here's the code I have so far:

//newsletter
.newsletter-form-header-title {
  font-size:20px!important;
font-family: 'Spartan', sans-serif!important;
      font-weight:800;
  text-transform:uppercase;
  letter-spacing:.075em;
  line-height:1.4em;
}
.newsletter-block .newsletter-form-field-element {
  color:white!important;
}
.form-submission-text {
  color:white!important;
}
input {
  color:white!important;
}
.newsletter-form-field-element {
 background: red !important;
  border:1px solid white!important;
 }
.newsletter-form-button {
      font-family: 'Spartan', sans-serif!important;
      font-weight:800;
  padding-top:18px!important;
  letter-spacing:.075em;
}
.newsletter-form-button:hover {
  background:#ff6100!important;
 color:white!important;
  opacity:1.0!important;
}

 

Posted
On 6/3/2020 at 4:19 AM, ampddesigns said:

@luisgonzalez, @tuanphan, did you end up finding a solution to this? I have the same question.

 

Here's the test site (newsletter in the footer):

https://plantain-grasshopper-zlwt.squarespace.com/test

password: view

 

And here's the code I have so far:


//newsletter
.newsletter-form-header-title {
  font-size:20px!important;
font-family: 'Spartan', sans-serif!important;
      font-weight:800;
  text-transform:uppercase;
  letter-spacing:.075em;
  line-height:1.4em;
}
.newsletter-block .newsletter-form-field-element {
  color:white!important;
}
.form-submission-text {
  color:white!important;
}
input {
  color:white!important;
}
.newsletter-form-field-element {
 background: red !important;
  border:1px solid white!important;
 }
.newsletter-form-button {
      font-family: 'Spartan', sans-serif!important;
      font-weight:800;
  padding-top:18px!important;
  letter-spacing:.075em;
}
.newsletter-form-button:hover {
  background:#ff6100!important;
 color:white!important;
  opacity:1.0!important;
}

 

Have you solved it yet?

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

  • 8 months later...
Posted

I have a similar question, mine relates however to changing just the background colour from white to the same as my site background (grey). Can anyone help? The issue exists both from the 'Subscribe' newsletter;
sub.thumb.JPG.5a254c690e9398c3f34b8a1df4d90216.JPG

area as well as the Comment section of the Blog site;
blog.thumb.JPG.fe62d18c21028678a5e4f8278f2997c8.JPG

I guess I would like a black bordering perhaps as well as changing the area from white to match my custom background grey (which is hsl(0, 2%, 80%)

Thanks!

 

Posted
11 hours ago, dunker56 said:

I have a similar question, mine relates however to changing just the background colour from white to the same as my site background (grey). Can anyone help? The issue exists both from the 'Subscribe' newsletter;
sub.thumb.JPG.5a254c690e9398c3f34b8a1df4d90216.JPG

area as well as the Comment section of the Blog site;
blog.thumb.JPG.fe62d18c21028678a5e4f8278f2997c8.JPG

I guess I would like a black bordering perhaps as well as changing the area from white to match my custom background grey (which is hsl(0, 2%, 80%)

Thanks!

 

Can you share link to page in screenshot?

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

Posted
10 hours ago, dunker56 said:

Sure, PM'd.

Add to Design > Custom CSS

/* input background */
.sqs-block-newsletter .newsletter-form-field-element {
    background: #cdcbcb;
}
/* comment input */
.squarespace-comments .new-comment-area .input form.comment-form textarea {
    background-color: #cdcbcb;
}
.comment-btn-wrapper {
    background-color: #cdcbcb;
    border: 1px solid #eaeaea !important;
}

https://www.eddysummers.com.au/blog/little-victoria

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

Posted
On 3/8/2021 at 8:08 PM, tuanphan said:

Add to Design > Custom CSS


/* input background */
.sqs-block-newsletter .newsletter-form-field-element {
    background: #cdcbcb;
}
/* comment input */
.squarespace-comments .new-comment-area .input form.comment-form textarea {
    background-color: #cdcbcb;
}
.comment-btn-wrapper {
    background-color: #cdcbcb;
    border: 1px solid #eaeaea !important;
}

https://www.eddysummers.com.au/blog/little-victoria

Thanks! That's heaps better!

  • 2 years later...
Posted (edited)
On 4/4/2023 at 8:08 PM, laurencharge said:

The "Post Submit" message is coming up in white text.

The reason this is happening is because you've chosen the Light tweak for Newsletter blocks in Design > Site Styles.

ScreenShot2023-04-05at10_03_05AM.png.efbf9b52ff094466475a806480f46afd.png

It appears you need two color designs. One for the footer and one for other pages.

In this case I'd be tempted to set the Style back to Custom, the default and then use CSS to modify the footer across the site. That way you only have to have a few CSS rulesets for the footer and not have to update the rulesets with page specific info in case you add the newsletter to other pages in the site.

Add the following to Design > Custom CSS.

.Footer .sqs-alternate-block-style-container .newsletter-block .newsletter-form-wrapper {

  background-color : black;
  
  }

.Footer .sqs-alternate-block-style-container .newsletter-block .newsletter-form-wrapper .newsletter-form-header-title,
.Footer .sqs-alternate-block-style-container .newsletter-block .newsletter-form-wrapper .newsletter-form-header-description,
.Footer .sqs-alternate-block-style-container .newsletter-block .newsletter-form-wrapper .newsletter-form-footnote,
body:not( .button-style-default ).button-style-outline .Footer .sqs-alternate-block-style-container .newsletter-block .newsletter-form-button

  {
  
    box-shadow : unset;
    color : white;
    
    }

.Footer .sqs-alternate-block-style-container .newsletter-block .newsletter-form-wrapper .newsletter-form-button {

  border-color : white !important;
  
  }

body:not( .button-style-default ).button-style-outline .Footer .sqs-alternate-block-style-container .newsletter-block .newsletter-form-button:hover {

  background-color : white;
  color : black;
  
  }

Or you can use LESS syntax.

// uses LESS syntax

.Footer .sqs-alternate-block-style-container .newsletter-block .newsletter-form-wrapper {

  background-color : black;
  
  .newsletter-form-header-title,
  .newsletter-form-header-description,
  .newsletter-form-footnote
  
    {
    
      color : white;
      
      }
      
  .newsletter-form-button {
  
    border-color : white !important;
    box-shadow : unset;
    
    }
    
  }

body:not( .button-style-default ).button-style-outline .Footer .sqs-alternate-block-style-container .newsletter-block .newsletter-form-button {

  box-shadow : unset;
  color : white;
  
  &:hover {
  
    background-color : white;
    color : black;
    
    }
    
  }

Let us know how it goes.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.