Support » Themes and Templates » How to link to the top of a page?

  • I’m using
    the Obsidian flavor
    of the Manji theme
    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?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Mark (podz)


    Support Maven

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

    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.

    Mark (podz)


    Support Maven

    Oops, I got the wrong link!

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

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

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

    Thanks, I’ll try that.

    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?

    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.

    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.

    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!

    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?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How to link to the top of a page?’ is closed to new replies.