Jump to content

Hyperlink color in markdown blocks

Recommended Posts

Hi all,

I have set a color for my hyperlinks in the Site Syles section but this color doesn't seem to translate to markdown blocks. I am using a markdown block for an expandable FAQ section and have included some hyperlinks. Unfortunately these links work but they are impossible to see as they remain the same color as the default font.

Anyone know how I can have the same color for my hyperlinks in a markdown block?

My website is https://www.everlandstudios.com.au

Thanks in advance... 

Link to comment
  • 1 year later...
On 12/2/2020 at 3:38 AM, Praneetha said:

Is there a way to do this for specific markdowns with a blockID?

Use this code

#block-id a {
    color: green !important;
}

Find ID with https://chrome.google.com/webstore/detail/squarespace-collectionblo/bggpdfnccodbnmcndckmeehdjkjojkde

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
  • 6 months later...

Hi @tuanphanis there a way to do this with a specific color? I want all the hyperlinks on my website to be one color so how can I change the markdown hyperlink to be this color as well? This is the color: hsl(45, 12%, 86%)

And how can I get the markdown link to be underlined as well? 

Edited by Sumana
Link to comment
On 6/25/2021 at 3:33 PM, Sumana said:

Hi @tuanphanis there a way to do this with a specific color? I want all the hyperlinks on my website to be one color so how can I change the markdown hyperlink to be this color as well? This is the color: hsl(45, 12%, 86%)

And how can I get the markdown link to be underlined as well? 

change green to hsl(45, 12%, 86%)

eg: color: hsl(45, 12%, 86%);

.markdown-block a {
	color: hsl(45, 12%, 86%) !important;
}

With markdown underline, use this code

.markdown-block a {
	border-bottom: 1px solid currentColor;
}

 

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.