Jump to content

Mardown - change colour of hyperlinks

Recommended Posts

Hi I'm working on a website and have include a collapse / reveal text using markdown.  Custom CSS code is:

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
   $(document).ready(function(){
   $('.markdown-block .sqs-block-content h2').css('cursor','pointer');
   $(".markdown-block .sqs-block-content h2").nextUntil("h2").slideToggle();
   $(".markdown-block .sqs-block-content h2").click(function() {$(this).nextUntil("h2").slideToggle();});
   });
   </script>

 

And this is the code in markdown:

+ Visible title
--------------------------

Hidden text

 

When i have a hyperlink in the hidden text, it automatically changes to the colour white. Do you know how I change to black?

 

Thanks!

 

Link to comment
  • Replies 3
  • Views 1.4k
  • Created
  • Last Reply
15 minutes ago, Chloe_ExecSC said:

Thanks so much Tuanphan!!

One last question if anyone knows - for links in markdown I can't seem to save so they open in a new window? Has anyone else had this issue and know of a remedy?

Try this guide.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.