Jump to content

Link styling not working for headings

Go to solution Solved by Web_Solutions,

Recommended Posts

Hi guys, I'm using this code to style links. However, the color of the font is changing in some instances (e.g. the paragraph text links in the first index section below the banner) and not others - specifically, where there are links in the headings (e.g. the second section title "LinkedIn Video Updates").

What am I doing wrong? TIA! 🙂
 

#page .sqs-block-html a {
text-decoration:none;
font-weight:bold
}

#page .sqs-block-html a:hover{
  color:#FFD60A;
  background-color:#003566;
  text-decoration:none;
}

 

Link to comment
1 hour ago, MySquare24 said:

Please send the website URL.

Also send the screenshot of links that you want to modify.

https://andrewpain.co.uk/

Apologies, I thought the site link had been included!

Here are a couple of screengrabs illustrating the two examples I gave in my original post (both from first couple of sections on the homepage).

Text color changing on hover:
Linkhoverparameterscorrect.thumb.PNG.49653c93adbc0eebf97997187731d56e.PNG

Text color not changing:
Linkparametersnotworking.PNG.9a5e3ede097941b4d7f768f1e45a1329.PNG

Link to comment
  • Solution
4 hours ago, john_p said:

https://andrewpain.co.uk/

Apologies, I thought the site link had been included!

Here are a couple of screengrabs illustrating the two examples I gave in my original post (both from first couple of sections on the homepage).

Text color changing on hover:
Linkhoverparameterscorrect.thumb.PNG.49653c93adbc0eebf97997187731d56e.PNG

Text color not changing:
Linkparametersnotworking.PNG.9a5e3ede097941b4d7f768f1e45a1329.PNG

Add this code

#page .sqs-block-html a:hover *{
    color: #ffd60a !important;
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
  • 4 weeks later...

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.