Archived topic
Section navigation in theme
9 replies · Started by Sapir on November 14, 2019
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.
Hi there,
Have you tried using our smooth scroll script?
https://docs.generatepress.com/article/smooth-scroll/
Let me know :)
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.
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 :)
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.
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 :)
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?
Is there a specific page I can check out to see the issue?
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?
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 :)