How to Link to a Specific Location on a Different Webpage
How to Upload a PDF document
Downloading GPX Files
This website is essentially a Travel Blog and I have the occasional need to create links, and upload PDFs, and allow GPX files to be downloaded.
There is plenty of information on the Web about how to link to a specific position on the same webpage but very little about linking to a specific position on a different webpage. And what I could find didn’t work for me.
So the information below is to remind me how to complete the tasks. It may be useful for you which is why I have published it.
How to Link to a Specific Location on a Different Webpage
The directions below are for the WordPress Classic Editor in TEXT VIEW, however, the same principles should apply for other website builders.
Target Webpage (the place you want readers to arrive at)
In the Target Webpage set up the place to where you want the link from the Linking Page to be directed. This place is the Target, aka Anchor or Bookmark:
<h2><a id=”prasat-hin-khao-phanom-rung“></a>Prasat Hin Khao Phanom Rung</h2>
Where:
a id=”prasat-hin-khao-phanom-rung“
is the Target name to be used in the Link and:
Prasat Hin Khao Phanom Rung
is the text to where the Link will go.
Linking Page (the place readers are at now)
In the Linking Page, at the text that you want to be the Link, insert this code to send the viewer off to the Target:
<a href=”https://www.adventures.net.au/travel/asia/ancient-ruins-of-thailand/#prasat-hin-khao-phanom-rung“>Prasat Hin Khao Phanom Rung</a>
Where:
“https://www.adventures.net.au/travel/asia/ancient-ruins-of-thailand/”
is the Target URL and:
#prasat-hin-khao-phanom-rung
is the position within that webpage to where you want the reader to be taken – the Target.
How to Test the Link
Open the Target Webpage.
Paste the Link in the Address Bar.
Press Enter/Return.
If the Link is correctly configured it will go to the Target.
How to Upload a PDF document
Information available on WEb about uploading/linking PDFs is not very clear.
WordPress treats a PDF as an image so treat the document as you would a photograph or image.
Upload the PDF to Media Library.
Highlight text where the PDF is to be downloaded.
Select Add Media.
Choose the PDF document from the Media Library.
Select ‘Insert into Page’.
Save.
Preparing a GPX File to be Downloaded
The perceived wisdom is that you can’t download GPX files from a WordPress site.
WordPress prevents GPX files being downloaded, citing security risks.
Zip the file to be downloaded by right clicking in Finder and selecting ‘Compress’.
Upload the xxx.zip file to the Media Library.
Link to it by copying and pasting the File URL.
It can then be downloaded.
© Kim Epton 2023
497 words.
Feel free to use any part of this document but please do the right thing and give attribution to adventures.net.au. It will enhance the SEO of your website/blog and Adventures.
See Terms of Use.