Jump to content

Newsletter button hover - css code works in prev when the editor is open, but breaks after I close it

Recommended Posts

Site URL: https://lanternfish-springtail-xgn5.squarespace.com/

Hey,

I'm having some issues with adding a hover effect on button element in a newsletter block.
When I'm in the editor (Design > Custom CSS) everything works great in the site preview, but once I close the editor it stops working. I use a Chrome browser as a default, but I also check the page in Safari and the hover effect doesn't work there either.

Here is the code I use:

// Newsletter Button Hover //

.newsletter-block .newsletter-form-button {
    transition: all 0.4s !important;
}

.newsletter-block .newsletter-form-button:hover {
   color: #ffffff !important;
   background-color: #D8BD81 !important;
   opacity: 1 !important;
}

I used inspect mode to check all classes attributed to this button, but only these seem to kind of work.

Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

3 hours ago, AleksandraPad said:

Site URL: https://lanternfish-springtail-xgn5.squarespace.com/

Hey,

I'm having some issues with adding a hover effect on button element in a newsletter block.
When I'm in the editor (Design > Custom CSS) everything works great in the site preview, but once I close the editor it stops working. I use a Chrome browser as a default, but I also check the page in Safari and the hover effect doesn't work there either.

Here is the code I use:

// Newsletter Button Hover //

.newsletter-block .newsletter-form-button {
    transition: all 0.4s !important;
}

.newsletter-block .newsletter-form-button:hover {
   color: #ffffff !important;
   background-color: #D8BD81 !important;
   opacity: 1 !important;
}

I used inspect mode to check all classes attributed to this button, but only these seem to kind of work.

Can you share your site-wide password? I can not access it at the moment

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

I check that your button is fine when hovered.

Have you figured it out?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
On 3/9/2022 at 4:28 AM, AleksandraPad said:

Still doesn't work on my end. Maybe it's a problem with my browser not loading the new code.

Do you still need help?

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.