How to link to different positions within a page?
The Graphene theme allows you to make any text into a link to a particular page on your website. But can you make it link to a particular POSITION within a page?
Say, for example, I have some text in which I make reference to a particular paper listed in my Bibliography that is on another page. Can I make the link not only go to the Bibliography page, but also go to the specific line on that page that lists the paper I am referring to?Mod
The short answer is yes, you can. The long answer is that you will need to use the HTML editor. Surround the text you want to link to with anchor name tags, like this:
<a name="link1">Paper that I'm linking to</a>
(This will appear as normal text.)
To link to that location, you’ll need to use a link like this:
<a href="http://www.example.com/index.html#link1">Read this paper</a>
You can read this page for more information:
and this one:
Like I said, you’ll need to use the HTML editor, which I don’t often use, so this is untested. YMMV.
Thanks, Kenneth and Josh, for your help; I got the links to work properly. After a little trial-and-error, it turns out that the correct way to write the HTML code to reference a particular line on another page turned out to be:
<a href="http://www.myWebsite.com/BibliographyPage.#ref>Read this paper</a>
Apparently, I don’t need to include the “.html”. In fact it doesn’t work if I include it. Anyway, thanks again.
P.S. What does “YMMV” mean?
You must be logged in to reply to this topic.