Site logo

[Support request] Section navigation in theme

Home Forums Support [Support request] Section navigation in theme

Home Forums Support Section navigation in theme

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1063220
    Sapir

    Hello,
    I have tried using “Page scroll to id” plugin.
    When I’m entering this page at desktop and trying to scroll down the page using the links under the pictures, it dosen’t scroll exactly to title but a bit lower than that.
    I have tried to check solutions online, but I think it’s including changing the theme files.
    I’m afraid that I will destroy the theme somehow. Any solution? Maybe the theme got this option in it?
    Thanks.

    #1063243
    Leo
    Staff
    Customer Support

    Hi there,

    Have you tried using our smooth scroll script?
    https://docs.generatepress.com/article/smooth-scroll/

    Let me know 🙂

    #1065660
    Sapir

    Hi,

    And How do I make proper anchors?
    There isn’t explenation for that..

    *I think if find how to anchor.. Think…..
    And how do I add the url..?
    I have added anchor this way:
    <!– anchor –>
    instead of scroll to me i wrote s4.3. I have copied all of the “a” line right under the <h3> line in my page.
    as an anchor… the guide is saying use this:
    My Section
    so I copied it as it is to the url in the top of the page… but thelink is broken, not working. red link on edit.

    #1065932
    Tom
    Lead Developer
    Lead Developer

    There are two ways to make an anchor.

    1. Add an ID to the element you want to scroll to. For example, if you have a heading:

    <h2 id="my-heading">My Heading</h2>

    Now you can link to #my-heading.

    2. Add an <a> element, like this: <a name="my-heading"></a>

    The first method is definitely the better of the two 🙂

    #1066873
    Sapir

    Thanks.
    Navigation isn’t really working well, same as the plugins.
    The navigation goes under the title I want it to get to. I want the title to appear.
    I know that there are offset options, but I coulent get one working by now.

    #1066934
    Tom
    Lead Developer
    Lead Developer

    If you’re using our smooth scroll option (https://docs.generatepress.com/article/smooth-scroll/) and our sticky navigation option, the offset should be calculated automatically without having to do anything 🙂

    #1066974
    Sapir

    I am not using sticky navigation.
    But, I checked how will it work with the sticky navigation option “on”, and it’s the same.
    Still getting a bit lower than the title I want it to get to.
    Suggetsions?

    #1067618
    Tom
    Lead Developer
    Lead Developer

    Is there a specific page I can check out to see the issue?

    #1067657
    Sapir

    Hi Super Tom!

    Don’t know what happend..
    Yesterday it didn’t worked, not it’s ok…

    edit:

    I understood the problem.
    I was checking through WP builder, and the black bar of WP above hid it all the time… weired thet didnt thought of it at first?

    #1067894
    Tom
    Lead Developer
    Lead Developer

    Strange, so it works when you’re not logged in? We’ll take a look to see if we can integrate the admin bar as well 🙂

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