Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Posts
    80
    Plugin Contributions
    0

    Default Why do # references link to the home page

    Any time I want to use something like <a href="#" etc.> or <a href="#JumpToA-NameLink"> It clicks through to my homepage. Do I have something set up wrong (and if so, how do I change this to avoid this), or is it supposed to do that?

    How do I do A Name references, e.g., for my FAQ links within one page. For example, I have a long list of:

    <a href="#link1">How do I order?</a><br>
    <a href="#link2">How much does it cost?</a><br>
    <a href="#link3">Can I cancel at any time?</a><br> (etc., followed by)

    <a name="link1"></a>How do I order?<br> (etc.)

  2. #2
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    307
    Plugin Contributions
    0

    Default Re: Why do # references link to the home page

    I think you'd have to use the correct URLs, say your page is "http://www.example.com/index.php?main_page=page&id=1&chapter=0", you would have to use :

    <a href="http://www.example.com/index.php?main_page=page&id=1&chapter=0#link1" title="How to order">How do I order?</a>

    HTH
    Shirley :)

  3. #3
    Join Date
    Jun 2007
    Posts
    80
    Plugin Contributions
    0

    Default Re: Why do # references link to the home page

    Thanks Shirley! With that, I was able to get it to work. And I didn't have to use the whole URL... just the page part. So:

    <a href="index.php?main_page=page&id=1&chapter=0#link1" title="How to order">How do I order?</a>

  4. #4
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    307
    Plugin Contributions
    0

    Default Re: Why do # references link to the home page

    That's correct, sorry I missed that bit :)

    Shirley :)

 

 

Similar Threads

  1. why the following code about reviews didnot work on the home page?
    By win8win in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Jun 2012, 02:07 PM
  2. How do I change the name of the home link on my main page.
    By MountainWilliam in forum General Questions
    Replies: 1
    Last Post: 20 Dec 2010, 03:17 AM
  3. Unable to determine the page link! --- why?
    By agent_44 in forum General Questions
    Replies: 0
    Last Post: 30 Oct 2009, 03:39 PM
  4. Why my home page flash banner is visible in the entire site?
    By miitiicoo in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Oct 2008, 08:26 PM
  5. Replies: 3
    Last Post: 23 Sep 2008, 06:25 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