Skip to main content
Participant
July 30, 2024
Question

ID (fka anchor) link to use for QR code

I'd like to use an ID (used to be anchor) on a page for a precise QR code link. If possible, how do I do that?

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Community Expert
August 1, 2024

I confess I don't understand your approach? 

 

On the one hand,

quote

https: // Example.com/pagename.html/#QRLink1

By @Nancy OShea

 

The links you give as an example use a slash between the page and the anchor, which will cause a syntax error. there shouldn't be a slash between the page extension and the anchor... just the hash symbol #.... well, that's how it's worked since we've been providing this service for our customers here at the https://qrcodes.epsyllum.net/ studio.

And on the other hand,

quote

Content on page:

<div id="QRLink1">

Your QR Code here

</div>

Hope that makes sense.

By @Nancy OShea

 

Why would you want to insert the QRCode within the web page itself... generally, the QRCode will be placed on a medium other than the web, precisely to link this medium (paper, video...) to the web...

Translate
Nancy OShea
Community Expert
Community Expert
August 2, 2024

You're right about the stray slash /..  That was my bad.  🤕

 

It should be Example.com/pagename.html#QRLink1  (where QRLink1 is the target content).

 

Dreamweaver is web authoring software.  In that context, I assume this question is about creating a website.

 

Without more information to go on, like the site's file structure, this is mostly guesswork.  I'm afraid my Crystal Ball isn't working. There's too much interefence from the #ParisOlympics.  😍

 

 

Translate
Nancy O'Shea— Product User & Community Expert
Community Expert
July 30, 2024

Although your question is clear, there are two inaccuracies...

Firstly, if you'd like clarification on the url to be transmitted to generate a QRCode pointing to a specific location in the document, simply indicate this anchor in the URL as you would for a link... so all you have to do is generate a QRCode pointing to, for example, https://www.the_web_server.com/the_page.ext#the_anchor

And secondly, would you like to understand how to generate the QRCode itself?
Therein lie two underlying questions :

  • Either, use a free online tool... just google Online QRCode generator... but free means... difficulty of updates (while preserving the same scheme), sometimes time-limited, ads and sniffer linked, etc... etc....
  • Either use your own library... for example... https://phpqrcode.sourceforge.net/... very easy to use and guaranteeing greater independence.

 

Please don't hesitate if you need further explanations.

Translate
Bluemug2Author
Participant
July 30, 2024

Thank you for your response. I don't understand the "two inaccuracies" statement, however.

 

My intent was to ask how the ID/anchor is "written" so when I create a QR code to link directly to this specific location on a page, it will work. I still am unclear as to how to actually write the link. Does it (#newlink) immediately follow the page url or is there a different naming convention?  page.html#newlink. I'm sorry, I cannot understand your example with underscores. We don't use underscores in our web files.

 

My university has a QR code generator that we use.

 

Translate
Nancy OShea
Community Expert
Community Expert
July 31, 2024

https: // Example.com/pagename.html/#QRLink1

https: // Example.com/pagename.html/#QRLink2

 

pagename.html/#QRLink1

pagename.html/#QRLink2

 

Content on page:

<div id="QRLink1">

Your QR Code here

</div>

 

<div id="QRLink2">

Your QR Code here...

</div>

 

Hope that makes sense.

 

Translate
Nancy O'Shea— Product User & Community Expert