How to define anchors (fragment identifiers) in define pages?
Hello all,
I searched for this online and on the forums to no avail. I'd like to use anchors in my define pages (main page, shipping, conditions, contact us, etc.). I create sub-sections and refer to them in a table of contents list, as well as having a return to top link in each sub-section.
I am having trouble with the anchor / fragment identifier. I am open to alternative suggestions too of course.
Ordinarily, an identifier such <h2 id=top> would be referenced like href="#top", and the browser would not need to reload the page. However, since the page URL is actually a query of the form index.php?page=conditions I find I need to define the fragment also as id="index.php?page=conditions#top". I presume this reloads the page.
Furthermore, if I have multiple languages (selected via language icons on the page, such that the URL then includes "&language=en" for example" then I need to include that also into the anchor definition, corresponding to the the language version of the define page.
Is there a different approach I can take for anchors in the define page editor, or to achieve what I would like, namely a quick way for the user to get back to the top of the page (or another section of same page) with a mouse click?
Note: My site is currently available locally only pending regulatory approval, if access is required I can open up preferably only to specific IP addresses.
Last edited by gernot; 18 Jun 2019 at 06:23 AM.
Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0
Bookmarks