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
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.