Jump to content

Customizing hover effects on links for headings - 7.1

Go to solution Solved by tuanphan,

Recommended Posts

Hi all. I'm using this code on 7.1 to achieve a green italicized hover effect on my headings. 

h1 a:hover {
    font-style: italic;
    color: #4ACA54 !important;
}

Right now, only the italicized portion works. The problem is likely stemming from me changing each of the word of the headings to have separate, individual colors (which I can only assume is overwriting the fluid engine site styles in CSS somewhere?). My hunch is that when I changed those heading colors, it's overwriting my code above. That being said, my skill level with CSS is largely copying and pasting. So I could be wrong! 

Appreciate any insight folks have in advance! 

Temporary link to site:  https://icosahedron-chicken-8ts6.squarespace.com

 
 

 

headings.1.png

headings.2.png

Link to comment

Thank you so much tuanphan! That worked perfectly on the home page.

One last question: I have the same problem on other pages, which is evident on the "featured work" page--those headings are overlayed in black, but I want them to change when hovered to the same green. If I wanted to change all links across the site, besides navigation, do you know what I should plug in? 

Really appreciate you checking back in on this!

Link to comment
  • Solution
On 3/1/2024 at 3:24 AM, cfuzz said:

Hey tuanphan, 

Basically I'd like all links to hover green (similarly to what you helped with above) EXCEPT for the nav menu. 

Thanks!

Use this code

#page a:hover {
    font-style: italic;
}
#page a:hover span {
    color: #4ACA54 !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

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.