Jump to content

Newsletter form hover text colour change

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://peachanddot.com/

Hi,

 

Do you know how to change the hover text for my sign up forms (both can be seen on this page (https://peachanddot.com/freebies) from black to white (so it matches the rest of the buttons on the site). I've managed to change the rest of the buttons with this tweak:

 

/* BUTTON TEXT TWEAK */
.sqs-block-button-element{
color: #ef7b7b !important;
background: #ffffff !important; background-color: rgba(0, 0, 0, 0) !important;
border: 2px solid #ef7b7b !important;

&:hover {
color: #ffffff!important;
background: #ef7b7b !important;
border: 2px solid #ef7b7b !important;
}}
.form-wrapper input[type=submit]:hover {
  color: #ffffff !important;
  background-color: #ef7b7b !important;
}

 

Thanks!

Link to comment
  • Solution
19 minutes ago, peachanddot said:

Site URL: https://peachanddot.com/

Hi,

 

Do you know how to change the hover text for my sign up forms (both can be seen on this page (https://peachanddot.com/freebies) from black to white (so it matches the rest of the buttons on the site). I've managed to change the rest of the buttons with this tweak:

 

/* BUTTON TEXT TWEAK */
.sqs-block-button-element{
color: #ef7b7b !important;
background: #ffffff !important; background-color: rgba(0, 0, 0, 0) !important;
border: 2px solid #ef7b7b !important;

&:hover {
color: #ffffff!important;
background: #ef7b7b !important;
border: 2px solid #ef7b7b !important;
}}
.form-wrapper input[type=submit]:hover {
  color: #ffffff !important;
  background-color: #ef7b7b !important;
}

 

Thanks!

try this

 .newsletter-block .newsletter-form-button:hover {
   color: #fff !important;
}

image.png.c5e44c1485f03a87dc3900b4967a464a.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 3/4/2021 at 9:15 PM, peachanddot said:

Yes, that did the trick, thanks a lot!

On tablet, I see huge white spacing here.

Add this to Design > Custom CSS

/* freebies tablet spacing */
@media screen and (max-width:991px) and (min-width:768px) {
div#block-yui_3_17_2_1_1613757506563_7292 {
    display: none;
}
div#block-yui_3_17_2_1_1613757506563_15814 {
    display: none;
}
}

image.thumb.png.a7a40aa7461737a9bedf6efee1dc951e.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
  • 3 months later...
  • 2 years later...
On 10/18/2023 at 9:23 PM, garlandehaney said:

Hi @tuanphan! Just following up to this question - I'm trying to add a hover colour to the newsletter block button on this contact page, but it doesn't seem to be working. Any suggestions?

https://www.megancrosbiedesign.com/contact-us

Many thanks,

Garlande

 

Screenshot 2023-10-18 at 10.22.57 AM.png

Use this CSS code

#siteWrapper #block-yui_3_17_2_1_1697579163720_12621 .newsletter-form-button:hover {
    background: #272e2e !important;
    color: white !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
  • 3 weeks later...

 @tuanphanThis has been incredible helpful but I am missing something. I have two newsletter forms, one on my contact page and another in my footer. I was able to change the box in the footer to transparent and the text is white when the customer fills in their email address but the text "Email Address" will not change from black to white. I am also having the same issue with the contact form. I was able to change the text font showing and being typed except on the "Message" box. When you type your message the font color is still black.

I have attached all the code that I have tried below and two screenshots. I am not super proficient at this and may have added too much in the CSS.

div.form-block input:not([type="submit"]), div.form-block textarea {
    background-color: transparent !important;
    border: 1px solid white !important;
  input-font-color: white;
}

div.newsletter-form-field-wrapper input:not([type="submit"]), div.form-block textarea {
    background-color: transparent !important;
    border: 1px solid white !important;
}
.newsletter-block .newsletter-form-field-element {
  color:white!important;
}
.form-submission-text {
  color:white!important;
}
input {
  color:white!important;
}
.newsletter-form-field-element {
 background: transparent !important;
  border:1px solid white!important;
 }
.newsletter-block .newsletter-form-field-element {
    color: white;
}
.newsletter-form-field-wrapper input:focus {
    color: white;
}
.form-submission-text {
    background: white;
    padding: 10px 20px;
}
.Footer .sqs-alternate-block-style-container .newsletter-block .newsletter-form-wrapper {

  background-color : transparent;
  
  .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 : white;
    
    }
    
  }image.thumb.png.2b3fbcadd05ea98c7f4149f8afdce55e.pngimage.thumb.png.91ef0102ebbbb130e74d7de9fbca1fea.pngimage.thumb.png.052634548e538141bb2a702d2ae7f035.pngimage.thumb.png.5fd0d65ff21a515360a3fee469c6b260.png

Edited by CMV_akp
Link to comment
On 11/14/2023 at 11:27 PM, CMV_akp said:

 @tuanphanThis has been incredible helpful but I am missing something. I have two newsletter forms, one on my contact page and another in my footer. I was able to change the box in the footer to transparent and the text is white when the customer fills in their email address but the text "Email Address" will not change from black to white. I am also having the same issue with the contact form. I was able to change the text font showing and being typed except on the "Message" box. When you type your message the font color is still black.

I have attached all the code that I have tried below and two screenshots. I am not super proficient at this and may have added too much in the CSS.

div.form-block input:not([type="submit"]), div.form-block textarea {
    background-color: transparent !important;
    border: 1px solid white !important;
  input-font-color: white;
}

div.newsletter-form-field-wrapper input:not([type="submit"]), div.form-block textarea {
    background-color: transparent !important;
    border: 1px solid white !important;
}
.newsletter-block .newsletter-form-field-element {
  color:white!important;
}
.form-submission-text {
  color:white!important;
}
input {
  color:white!important;
}
.newsletter-form-field-element {
 background: transparent !important;
  border:1px solid white!important;
 }
.newsletter-block .newsletter-form-field-element {
    color: white;
}
.newsletter-form-field-wrapper input:focus {
    color: white;
}
.form-submission-text {
    background: white;
    padding: 10px 20px;
}
.Footer .sqs-alternate-block-style-container .newsletter-block .newsletter-form-wrapper {

  background-color : transparent;
  
  .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 : white;
    
    }
    
  }image.thumb.png.2b3fbcadd05ea98c7f4149f8afdce55e.pngimage.thumb.png.91ef0102ebbbb130e74d7de9fbca1fea.pngimage.thumb.png.052634548e538141bb2a702d2ae7f035.pngimage.thumb.png.5fd0d65ff21a515360a3fee469c6b260.png

What is site url? We can check easier

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.