Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Change color of just one hyperlink - how to with CSS?


ChrisS1980

Question

Site URL: https://music.casio.co.uk/40th

hi everybody,

I'm trying to change the colour of the 'Download Your Free fanzine sample here' link at the top of page. I'd like it to be blue, then go to light blue on hover. At the moment it's grey and not very visable.

I've tried putting some custom CSS code into this, but just can't seem to find which block to tie the code to. Can anyone help please?

Many thanks in advance,

 

Link to post
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Posts

#block-yui_3_17_2_1_1599495604788_125794 a { color: blue !important; } #block-yui_3_17_2_1_1599495604788_125794 a:hover { color: red !important; }  

Hi Use this code in Design -> Custom CSS #block-yui_3_17_2_1_1599495604788_125794 span a { color: #185bff !important; transition: 0.5s all; } #block-yui_3_17_2_1_1599495604788_125

Wow - two great solutions. Many thanks 🙂

3 answers to this question

Recommended Posts

  • 0
#block-yui_3_17_2_1_1599495604788_125794 a {
    color: blue !important;
}

#block-yui_3_17_2_1_1599495604788_125794 a:hover {
    color: red !important;
}

 

Free Squarespace 7.1 Anchor Link and Accordion Plugins available here!

If I replied to one of your questions with code, it was either CSS or jQuery.

To add CSS, go to Design -> Custom CSS

jQuery needs some additional steps. Head here: https://code.jquery.com/ and click on minified, under jQuery 3.x and copy that code into Squarespace.

After you put that code into the code injection section in Squarespace, you can add the code I supplied. The code from me will need <script> added before it and </script> added after it (only for jQuery).

There are two places that you can add the code, one is site wide (adds to all pages). Settings -> Advanced -> Code Injection

The other is for a specific page (adds to one page only). Pages -> Gear Icon next to the page -> Advanced

Link to post
  • 0

Hi

Use this code in Design -> Custom CSS

#block-yui_3_17_2_1_1599495604788_125794 span a {
    color: #185bff !important;
    transition: 0.5s all;
}

#block-yui_3_17_2_1_1599495604788_125794 span a:hover {
    color: #0da3d5 !important;
}

It has a transition on hover!
Please use the like button if it helps you!

Best,
Leopold

Edited by IXStudio

Ninja Kit Extension: Upgrade your Squarespace website without coding.

YouTube Preview    -    FREE DOWNLOAD

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...