WordPress.org

Support

Support » Themes and Templates » Jump to top of page – long posts

Jump to top of page – long posts

  • I write long posts and after scrolling down 10 posts I’d like the reader to be able to choose not only »Previous – Next«, but also »Top of Page«. This would give them quick access to the Sidebar, rather than scrolling their way back up again.

    I imagine this is fairly common and there are good solutions out there. I’ve looked around a bit but just might have missed it. I’m fairly new to WordPress and code, but I’m slowly getting the hang of it and have cusomized a theme for my site that I’d like to improve.

    All good advice is appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You need to place an Anchor near the top and then at the bottom have a hyperlink pointing to the anchor.
    Google HTML ANCHOR or HYPERLINK ANCHOR and you should get a better explanation of its use.

    Put the following code in html view where you want to start out at.

    <A href="#your_tag_name_here">Your own words here</A>

    Put the following code in html view where you want to finish.

    <A id="your_tag_name_here" name="your_tag_name_here">Your own words here</A>
    Make sure you start and finish in HTML view. Also, make sure you use capital A ( <A href=)

    Thats it. For an example of it working go here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Jump to top of page – long posts’ is closed to new replies.
Skip to toolbar