Jump to content

Hover Animation not working for all links

Go to solution Solved by paul2009,

Recommended Posts

There is some code I added into this site where font links on hover change colour. This was working fine, however as I have added more bits of code into the website (client asked to remove hover change colour apart from h4) whenever I add a new h4 link it doesn't change colour on hover, however all the ones I did ages ago still change colour on hover. 

There is a list of services on the home page of website which all change colour, apart from the latest addition to the list which doesn't change on hover despite being h4 and a link.

I fear I may have contradicting code or a bug as I have had to add more in (and I don't know how to use code).

Site link www.covecompliance.co.nz 
Password : Cove

 

Screenshot 2024-09-24 at 12.05.06 pm.png

Screenshot 2024-09-24 at 12.05.14 pm.png

Link to comment

Hey @ConnorCF! I’m guessing you’re having a pretty great day, right? I’ll be helping you out now. Please follow the steps below, but first, make sure to remove the code you have in place.

 

  1. Navigate to Pages > Website Tools > Custom CSS.
  2. Paste the following code into the CSS editor.
  3. Hit Save and you’re done.

 

h1, h2, h3, h4, p {

  a:hover {

   color: #0EF36F !important;

}

}

Let me know if that works, thanks.

Edited by Spark-Plugin

- Answered by Iuno from sparkplugin.com

forumsignature-recommendedcopy2.png.0579645eb1430dc7c1059541dc6456c6.png

Link to comment

Hey @Spark-Plugin  Thanks!

This works as it's meant to however the "compliance Schedule Updates" text which is the same styles as the text  above does not change colour on hover. Which is really random. Is there maybe a bug? Or something I can't see that's causing this hover effect to not work?

Link to comment

Hello again, @ConnorCF!

Yes, it could be a bug. You can try these two options:

  1. Remove all the code you have on your website (if you have). Paste it into a Google Doc or something for backup, then only add the code I provided. See if that works. If it does, then it's likely some other code you’re using that’s causing the issue.

  2. Delete the Compliance Schedule Updates text, then duplicate the Compliance Audit text. If that works, just change the duplicated text to Compliance Schedule Updates.

 

Let me know. Thank you.

- Answered by Iuno from sparkplugin.com

forumsignature-recommendedcopy2.png.0579645eb1430dc7c1059541dc6456c6.png

Link to comment
  • Solution
On 9/24/2024 at 1:15 AM, ConnorCF said:

There is some code I added into this site where font links on hover change colour. 

There is a list of services on the home page of website which all change colour, apart from the latest addition to the list...I fear I may have contradicting code or a bug

Hey @ConnorCF 👋

This isn't a bug 🙂. It looks like a text accent has been added to the last link in your list (manually setting the font colour using the text formatting toolbar).

image.thumb.png.b198555ebcfce92a9f377ccf6c033200.png

If you remove this (hit the Tx button), the CSS should work as expected.

If you want to keep the accent and have the hover effect, the CSS selector will need to include 'span' to affect this link.

Did this help? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

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.