• Something is odd… I added a link at the bottom of the page that should jump back to the top of the page, but for some reason it jumps to the top of index.php – not the page that I am viewing. Is there some tricky thing I need to do?

Viewing 15 replies - 1 through 15 (of 21 total)
  • Please provide a link. Otherwise it’s pretty tough to troubleshoot.

    And you could also paste here that one line of code for the link that you added… (not the whole page! LOL)

    Thread Starter snoogly

    (@snoogly)

    Sorry….

    In header.php, just inside the body tag:

    In footer.php:
    go to top

    Thread Starter snoogly

    (@snoogly)

    darn it… I have no idea how to post code here, could someone enlighten me?

    And do you have an <a id=”top” /> in your page?

    Thread Starter snoogly

    (@snoogly)

    yes indeed. sorry, but I can’t figure out how to post the code here….

    for some reason I am not being taken to the top of the current page, but always to the top of index.php

    put code between back tics… under the tilde ~

    also put the <a id="top" /> at the bottom of the header.php file..

    <!-- HEADER BLOCK -->
    <a id="top" />

    Thread Starter snoogly

    (@snoogly)

    hmmmm no matter where I put the code in the header I am always getting the same result.

    Is there anything I can add to the link at the bottom to tell it to jump to the top of that particular page, and nit index.php?

    using (Below) in the header.php

    <!-- HEADER BLOCK -->
    <a id="top"></a>

    I have
    <img border="0" src="/images/top.gif" width="10" height="15" alt="Top of the Page" title="Top of the Page" /> <a title="Top of the Page" href="#top" >Top of the Page</a>

    in my index.php under the post.. so it works and looks like https://www.aleeya.net/ (Click top of the page)

    and when I goto (for example)
    https://www.aleeya.net/2005/10/20/css-printer-friendly-for-wordpress/

    and I want to go to the top of the page, I have

    <img border="0" src="/images/top.gif" width="10" height="15" alt="Top of the Page" title="Top of the Page" /> <a title="Top of the Page" href="#top" >Top of the Page</a>

    under the post in single.php or in archives.php

    is that how you mean for it to work?

    Thread Starter snoogly

    (@snoogly)

    Thanks estjohn. I am baffled – no matter where I put the link I always get sent to index.php!

    What is the url?

    Thread Starter snoogly

    (@snoogly)

    Well, I am looking at the source to see what I can see..

    I doubt these relate, but you might want to check:
    <div id=noText">&nbsp;</div> and put a quote in front like <div id="noText">&nbsp;</div>

    and on the comment form:
    <form action="https://www.elpweb.com/flsc/movies/wp-comments-post.php" method="post" id="commentform" name="commentForm">

    it is cap sensitive.. so make both commentform or commentForm

    ——————–
    sorry, I was rambling.. those are minor things and I apologize for going on..

    back to the top thingee..

    I see it at

    </div> <!--close header-->
    <div id="right">
    <div id="content">
    <a id="top"></a>

    maybe put it before </div> <!--close header--> ?

    so it reads
    <a id="top"></a>
    </div> <!--close header-->
    <div id="right">
    <div id="content">

    since after the header, it would refer to the index.php and not the header of tht page..

    Thread Starter snoogly

    (@snoogly)

    thanks for pointing out those errors in the code – I am fixing them now!

    I tried moving id=”top” to within the header, but it makes no difference at all. It beats me… I have put it in every concievable place, but always with the same result.

    ok im still seeing it after the </head>
    try it in the header.php

    <link rel='archives' title='October 2005' href='https://www.elpweb.com/flsc/movies/archives/2005/10/' />
    <a id="top"></a>

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘link to top of page jumps to index.php!’ is closed to new replies.