Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6150839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:40:43+00:00 2026-05-23T19:40:43+00:00

I have a blog with annotated references like [1] that. [1]Jake Smith. http://example.com …………..

  • 0

I have a blog with annotated references like [1] that.

   [1]Jake Smith. http://example.com ..............
   [2].............

I want it so the [1] in the text is an anchor that links to the [1] in the References. I know I could do this by doing something in the text like <a href="#ref1">[1]</a>and then making every list item in the references have an id, , that is, that is,

<ol>
    <li id="ref1"></li>
     ...
</ol>

But that’s a lot of work for me to go through all the blog posts. I’m sure I could make a JavaScript or jQuery function to add this functionality, but then it would not work with JavaScript disabled. So is there some other function I don’t know? Like some fancy CSS trick, or should I just use JavaScript to do this?

What are your recommendations?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:40:43+00:00Added an answer on May 23, 2026 at 7:40 pm

    Your options are:

    1. A blog plugin that detects this in the content and forms the link and adds the related id to the appropriate element for you when the HTML is being output
    2. A script that runs and does the same thing after the HTML has loaded.
    3. Manually adding the links by hand.

    A blog plugin is your best bet, since surely this is a solved problem (though it would depend on your blogging platform, of course).

    CSS is for styling, it can’t add links/ids.

    In addition, remember that if you are ever going to display multiple blog posts on each page, you will want to add the blog id to the anchor as well. Instead of ref1, you’ll want:

    ref_[blogid]_[refid]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have blog data like: This is foreign <a href=xyz.com>link</a>, this is my site's
I have a blog, that is update pretty often. I like, while on the
i have a wordpress blog and want to give people the same user experience
I'm starting a Wordpress Blog that will have adult content on it, so I'll
I'm writing a custom blog engine and would like to have trackbacks similar to
I have blog comment forms in Django and I would like to know the
I have a blog-like application with stories and categories: class Category(models.Model): ... class Story(models.Model):
I have a blog that has a redirect loop, and I can't understand htaccess
Let's imagine that we have blog with category A . Category A is currently
I have a blog. I want to add a bit of Javascript on my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.