WordPress.org

Ready to get started?Download WordPress

Forums

How to link to the top of a page? (12 posts)

  1. pezastic
    Member
    Posted 9 years ago #

    I'm using
    the Obsidian flavor
    of the Manji theme
    here
    and I moved the nav links to the bottom of the header image. There is a link there which used to go to the top of the page, where the nav links resided. However, now it only goes to the nav links. (You can click on search and then the up arrow to see what I mean.)

    Initially, I thought that moving <a name = "top"></a> up as high as possible, directly under <body> to be exact, would link to the top of the page, but that didn't change anything. It still only goes as high up the page as the first link (in the nav links). How can I make it so the link will go to the top of the page, no matter what page a user is on?

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    If I click on Search, then the arrow, I'm back at Search (at the very top less 1 pixel) ... have I misunderstood ?

  3. pezastic
    Member
    Posted 9 years ago #

    Really? It doesn't do that for me. I'm using firefox and I even cleared the cache and still don't go to the top of the page.

    Crazy stuff. I just tried IE and it goes to the top of the page, but search link didn't go to the bottom. I had to manually scroll to the bottom.

  4. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Oops, I got the wrong link!

    <a name =" top"></a>

    Try making that
    <a name ="top"></a>

  5. dissurion
    Member
    Posted 9 years ago #

    You have it twice, and as " top" instead of "top". Maybe that causes it.

  6. pezastic
    Member
    Posted 9 years ago #

    Thanks, I'll try that.

  7. pezastic
    Member
    Posted 9 years ago #

    No luck. :-(

    From what I'm seeing with Firefox, after clearing caches, is the same thing. The link to the bottom works, but the link to the top doesn't. With IE, the link to the bottom doesn't do anything at all, but the link to the top works.

    Can someone take a look at it now and tell me where I might have a problem?

  8. dissurion
    Member
    Posted 9 years ago #

    The only think I can think of now is to try to rename your li id="top" or your name="top". Maybe they interfere. But that's wild guessing.

  9. pezastic
    Member
    Posted 9 years ago #

    Good wild guessing! I would imagine others using this template will encounter the same problem. Changing the hrefs helped me. However, I still am not able to go to the bottom of the page, using the search link, with IE.

  10. pezastic
    Member
    Posted 9 years ago #

    All is well. I moved the "tobottom" href up a few divs and now it works under IE as well as Firefox. Thanks for the help!

  11. NuclearMoose
    Member
    Posted 9 years ago #

  12. jonestown
    Member
    Posted 9 years ago #

    I have added into my header file, right below the <body> tag.

    I would like to have "back to top" links using back to top between each post on my home page. is that possible?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.