fulbad.blogg.se

Divi anchor links not working
Divi anchor links not working













However this is sloppy and looks different on different screen sizes because it puts the anchor tag above the paragraph that precedes the desired target as a work-around.

divi anchor links not working

In this case, the title of the section is not lost under the menu. This link goes to the same section of this article as the link above. If you rarely use anchor tags, you can just cheat a bit and create a false target slightly above the real target on the page, for example. There are many ways to work around this issue. That fixed menu will overlay the top of your div with a regular anchor tag approach. These themes reserve space at the top of the screen for a fixed menu.

divi anchor links not working

More accurately, many WordPress themes aren’t normal. Normally, clicking the link will take you to the desired div with the heading near the top of the screen. That’s the problem with anchor tags in WordPress.Ĭonsider this element somewhere on the page: Īnd a link elsewhere on the page like this: Go to the landing section of the page Note that the title of that section of this article is lost under the menu. This link goes to an anchor further down the page. A link can jump to any bit of content with an id assigned but we most commonly use div, p, a or span elements as the targets of our anchor tag links. We use anchor tags to jump to a specific place on the page we’re on or on another page.















Divi anchor links not working