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
  • Views 358
  • 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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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

I check that your button is fine when hovered.

Have you figured it out?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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

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.