6/12/2023 0 Comments Anchor link in wordpressIt also requires knowing the height of whatever is causing the problem, and this height may not always be known or fixed for all pages. I’ve dealt with so many such cases here in the WordPress forums.Īlso, the solution the article gave was copied from a Stack Overflow Q&A which was originally written in 2001, and may not work with modern display options like flex. That’s why I asked to see the site.Ī common cause of this for visitors, as the article you linked to mentioned, is fixed or sticky headers. ![]() It may be a common problem, but it is very unlikely that WordPress itself is causing this, especially for visitors. ![]() For visitors who are not logged in your anchor link position will look different because they have no admin bar at the top. First be sure to rule out the WordPress admin bar obscuring your headers. I agree with you that this is a common problem. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic This topic was modified 1 year, 7 months ago by Jan Dembowski. Hopefully someone has a solution for this. It’s just a weird problem that shouldn’t even be happening. I’ve tried a lot of things to try to tweak it, but the only thing that works is me putting a big spacer before the headline and setting it to jump to that instead, but that big space doesn’t look right at all. I f I set it to jump to a specific headline, I want it to jump to the headline, not past it or around it. Maybe this sounds like a small issue to some, but I like specificity. Is there any way to make it jump before it and not under it? And yeah, I know that a visitor can just scroll up a bit, but why should they have to? And some won’t even think to do so. ![]() it jumps below the headline, so it doesn’t even show the headline that I want it to jump to, just jumps right past it. Hi, I used the block editor feature to create an anchor link to jump to a specific headline, and it works, but the problem is that it’s off like throwing a dart a dart board and not quite hitting bullseye.
0 Comments
Leave a Reply. |