Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2009
    Location
    Great Northwest
    Posts
    80
    Plugin Contributions
    0

    Default HTML "Back To Top" Code Not Working Properly In EZ Page

    I've created a FAQ page using the contribution "FAQ Page" using EZ pages. I've inserted the code in the page, saving it then loading the FAQ page from my home page FAQ link. The FAQ page opens fine but when any page link is clicked (such as 'question 1' taking me to the answer to question 1), it immediately takes me back to the home page of my store.

    I've used the 'back to top' routine in the HTML page and it functions properly opening the page with my browser. However, it doesn't function right from within my store FAQ page. The basic routine is:

    <a name=last>Take me to the end of the page</a>
    <a href='#last'>This is the end of the page</a>

    Here is HTML header code I currently have in place for the first 6 questions for my first topic (not the entire page):

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title></title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="author" content="">
    <meta name="generator" content="">
    </head>
    <body>

    <a name="top">About Us</a>
    <ol>
    <li><a href="#aboutus1"><b>Question 1</b></a></li>
    <li><a href="#aboutus2"><b>Question 2</b></a></li>
    <li><a href="#aboutus3"><b>Question 3</b></a></li>
    <li><a href="#aboutus4"><b>Question 4</b></a></li>
    <li><a href="#aboutus5"><b>Question 5</b></a></li>
    <li><a href="#aboutus6"><b>Question 6</b></a></li>
    </ol>
    And here's the resulting location within the page clicking any of the question links should take me:

    <a name="aboutus1">Question 1</a>
    <p>[This is the answer to the question.]</p>
    <a href="#top">Back to Top</a>

    <hr noshade size="1">

    <a name="aboutus2">Question 2</a>
    <p>[This is the answer to the question.]</p>
    <a href="#top">Back to Top</a>

    <hr noshade size="1">

    <a name="aboutus3">Question 3</a>
    <p>[This is the answer to the question.]</p>
    <a href="#top">Back to Top</a>

    <hr noshade size="1">

    <a name="aboutus4">Question 4</a>
    <p>[This is the answer to the question.]</p>
    <a href="#top">Back to Top</a>

    <hr noshade size="1">

    <a name="aboutus5">Question 5</a>
    <p>[This is the answer to the question.]</p>
    <a href="#top">Back to Top</a>

    <hr noshade size="1">

    <a name="aboutus6">Question 6</a>
    <p>[This is the answer to the question.]</p>
    <a href="#top">Back to Top</a>
    <br><br>
    Just wondering what I may have done wrong for the links not to work with the FAQ page. Any of the question links I click take me back to my home page and out of the FAQ page completely. The page works perfectly within my browser when I'm testing it.

    Here's a link directly to my store FAQ page if you'd like to take a look (all is still under construction):

    http://www.earnest-enterprises.com/i...?main_page=faq


    Any help would be appreciated!

    Thanks...

    Rod

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: HTML "Back To Top" Code Not Working Properly In EZ Page

    Lots has been discussed in the forum about HTML anchor tags in EZPages.

    A search should reveal what's been discussed.
    20 years a Zencart User

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: HTML "Back To Top" Code Not Working Properly In EZ Page

    1. That's not an EZ-Page. It *might* be a define-page though?
    2. If you want to use anchors, you need to put the ENTIRE URL in your link.
    ie: <a href="http://www.url_to_my_site.com/index.php?main_page=faq#top">Back to Top</a>
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Oct 2009
    Location
    Great Northwest
    Posts
    80
    Plugin Contributions
    0

    Default Re: HTML "Back To Top" Code Not Working Properly In EZ Page

    Thank you both for the quick reply. I'll not only do some more searching but will try the full path as well. You both saved me some headaches! Thanks!

    Rod

 

 

Similar Threads

  1. v151 "Tools > Store Manager > Set next order number" not working properly
    By chowyungunz in forum Managing Customers and Orders
    Replies: 7
    Last Post: 5 Nov 2014, 07:12 PM
  2. EZ Page "back to page top links"-how to code?
    By notageek in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 May 2010, 11:31 AM
  3. Change font color of "Home" and "LogIn" at navMainWrapper (Top of page)
    By Eglantin in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Dec 2008, 12:19 PM
  4. How to Change "Redemption Code" to "Coupon Code" & "GV Code"
    By dmfelder in forum Basic Configuration
    Replies: 5
    Last Post: 16 Apr 2008, 05:50 PM
  5. Move "Home" & "Login" links at top of page
    By kp14 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 May 2007, 06:33 PM

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