Chloe_ExecSC Posted March 20, 2020 Share Posted March 20, 2020 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
tuanphan Posted March 20, 2020 Share Posted March 20, 2020 Add to Home > Design > Custom CSS .markdown-block a { color: black !important; } 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
Chloe_ExecSC Posted March 20, 2020 Author Share Posted March 20, 2020 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? Link to comment
tuanphan Posted March 20, 2020 Share Posted March 20, 2020 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.