Jump to content

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

Recommended Posts

Posted

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.

  • Replies 5
  • Views 597
  • Created
  • Last Reply

Top Posters In This Topic

Posted
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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

Posted
6 hours ago, bangank36 said:

I check that your button is fine when hovered.

Have you figured it out?

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

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.