Results 1 to 10 of 12

Threaded View

  1. #1
    Join Date
    Feb 2017
    Location
    Tokyo, Japan
    Posts
    278
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. Using HTML named anchors in define pages
    By lat9 in forum General Questions
    Replies: 3
    Last Post: 4 Jun 2012, 02:02 AM
  2. Define Pages - How to define brand new page
    By hutch32804 in forum Customization from the Admin
    Replies: 4
    Last Post: 31 Oct 2009, 01:39 PM
  3. index_default & define pages(4+ define pages on frontpage?)
    By mrmarcus66 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 May 2006, 07:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR