Home Forums Support Anchor Function

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #231211
    Hermann

    I need an Anchor Function for long text sites.
    but important, as a menu point, not by inserting manual html

    #231338
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    This might help: https://generatepress.com/forums/topic/one-pager/#post-155986

    Let me know 🙂

    #231409
    Hermann

    i did´nt really understand.
    Can you show that with a few screenshots.

    Very important form me is: i will have a matrix with some events at the beginning of the text.
    When i click on the event, there should be a jump to the report on the same side.
    After reading the eventreport. i want to jump back to the matrix.

    #231647
    Tom
    Lead Developer
    Lead Developer

    It’s not really something can be shown through screenshots.

    You have to set the anchor point with a name in the page where you want the links to jump to:

    <a name="scroll-to-me"><!-- anchor --></a>

    Then in “Appearance > Menus”, you want to add a custom link: https://generatepress.com/knowledgebase/using-menus/#create-drop-down-menu-custom

    The URL of that custom link should be the name of your anchor with a hashtag in front of it: #scroll-to-me

    If you’ll be linking to these anchors from separate pages, the custom link will need to include the full URL: http://yourwebsite.com/my-page#scroll-to-me

    #231666
    Hermann

    that seems do be the Bacling to the top.

    when you have a matrix with i.e. 20 events i need a jump to each event.
    With your suggest, it will look very confusing for me.

    #231820
    Tom
    Lead Developer
    Lead Developer

    Can you show me what you have so far?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.