[Resolved] Jump link to bottom of page

Home Forums Support [Resolved] Jump link to bottom of page

Home Forums Support Jump link to bottom of page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #633947
    Derek

    Hello,

    I’m trying to create a jump-link (if thats what it’s called), so that when someone clicks on my “comment count” at the top of my page, it will jump them to the bottom of the page. I know generate press had some type of arrow thing that jumped to the top of the page, it would work like that, but jump to the bottom instead, and not by a button, but by clicking on the comment count link. Any idea how this could be accomplished? I don’t think I can create an anchor to the comments, so maybe GP has something I can jump to the theme footer, honestly I don’t know ๐Ÿ˜›

    Thanks ๐Ÿ™‚

    GeneratePress 2.1.3
    GP Premium 1.6.2
    #633959
    David
    Staff
    Customer Support

    Adding your own jump link would be as simple as creating the link with the element ID as the URL. To jump to comments would be:

    <a href="#comments">Jump to comments</a>

    For an element added to the page by another plugin would require some javascript.

    #634341
    Derek

    Wow I had no idea it was that easy. I can see many practical uses for this..thank you so much!

    #634578
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.