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

How to add an anchor link in markdown block?


jkristobans

Question

Hey.

How to add an anchor link in markdown block?

I have a code with sup tags and cant figure out whether it's possible to have a anchor link.

<p><span style="color: #282828; letter-spacing: 0.02em; font-size: 26px; font-weight: 400;"> Write <sup style="font-size: 10px; line-height:0; vertical-align: 10px;">10</sup>

 

 

Link to post
  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

Use HTML <a href="#anchor">Link</a>

5 answers to this question

Recommended Posts

  • 1

Use HTML

<a href="#anchor">Link</a>

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

Can I add an anchor link inside a markdown block for an FAQ accordion page, so that when I click on a button on the home page of my site (I linked the button to /faq-1/#adaptogens) , it opens the FAQ accordion page with a specific question/answer already expanded in the accordion?

Here is the markdown block for the question that i want to automatically expand when someone clicks on the home page button and goes to the FAQ page.  According to your instructions above, I need to add <a href="#adaptogens"> </a> but I can't figure out where to put it in the markdown block below.

<p> </p>
### How do adaptogens work?
> ## Adaptogens are plants that help the body resist stressors of all kinds, whether physical, chemical, or biological. 

Thanks!

Link to post
  • 0
On 9/15/2020 at 2:21 PM, kyding said:

Can I add an anchor link inside a markdown block for an FAQ accordion page, so that when I click on a button on the home page of my site (I linked the button to /faq-1/#adaptogens) , it opens the FAQ accordion page with a specific question/answer already expanded in the accordion?

Here is the markdown block for the question that i want to automatically expand when someone clicks on the home page button and goes to the FAQ page.  According to your instructions above, I need to add <a href="#adaptogens"> </a> but I can't figure out where to put it in the markdown block below.


<p> </p>
### How do adaptogens work?
> ## Adaptogens are plants that help the body resist stressors of all kinds, whether physical, chemical, or biological. 

Thanks!

Have you found the solution yet?

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan, work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. 

Link to post
  • 0
48 minutes ago, tuanphan said:

Have you found the solution yet?

Not yet 🙂  For now, I just moved that FAQ up to the top position in my FAQ list so at least users will more easily see it when they click on the home page button and get to that page.

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