How do I manually create anchor links in articles?

Return to top

9 Comments

  • Abdul

    Currently this way of approach not jump into respective section. Any solutions ?

    0
  • Chris Hoelzel

    Hello Abdul,

    Does the link not appear when you create it this way? Do you have an example of the line of code you are using for this link that we can review?

    I look forward to assisting on this!

    Best,

    Chris H
    Technical Support Architect

    Zendesk offers free, on-demand training for all of our products. Set up your account and start learning today at training.zendesk.com

    0
  • Rachel Gerard

    Hi there,

    Is it possible to create an anchor tag on the Help Center homepage? For example, if they click a link at the top of the Help Center, it brings them all the way down to where our Knowledge Base is?

    Thanks!

    0
  • Amy Gracer
    Community Moderator

    Yes, if I understand what you are looking to do. 

    Here is a snippet from my test homepage. The bold "Link" href jumps to the named H1. 

     <section class="section knowledge-base">
         <section class="categories blocks">
              <section class="container">


                      <ul class="blocks-list">
                           <p><a href="#link">Link</a></p>
                            <li class="blocks-item custom"> . . . </li>

                            <li class="blocks-item custom"> . . . </li>

                      </ul>

                       <h1><a name="link">Link</a></h1>
                       
    </section>
    </section>
    </section>

    0
  • Dawn Phelps

    Is it possible to anchor link to a heading that isn't H1? For our Style Guide, we prefer headings to be H3 and would find great value in anchor linking - but right now the only way I can get anchor linking to work is if I use H1 for my headers.

    0
  • Giuseppe
    Zendesk Customer Care

    Hi Dawn,

    By clicking the Anchor button and choosing Heading, you should be able to choose from the headings in your article, regardless if they're H1 or not:

     

     

     

    0
  • Dawn Phelps

    Thanks Giuseppe! For some reason I wasn't seeing that earlier, but now I do. 

    0
  • Compliance Support

    Hi,

    How do I link to an anchor tag in another article?

    0
  • Jeff C

    Hi there,

    At the bottom of this article, you'll see a way to do this by doing the following -

    You can also link to an anchor link on another page using the full URL plus the hashtag. For example:

    <a href="https://support.zendesk.com/entries/98542436#some_anchor_name"></a>

    Using a hashtag without a URL works only if the anchor is on the same page.

    Let me know if that isnt want you are looking for!

    0

Please sign in to leave a comment.

Powered by Zendesk