

On other pages (Apart from Home page), the link to ‘ About us‘, should still take me to the home page and jump straight to the corresponding ‘ About us ‘section.

I needed a common menu for Home page as well as other pages. Home page has different sections like, About us, Services, Gallery, Contact Us etc., Along with home page, there are few other pages too. Here’s the scenario in my client website. Well, this works fine if the section ( gotohere) and anchor link is on the same page, but does not if it were linked from a different page. For example, consider a link, upon clicking, the page should scroll to the section ‘ gotohere‘. The issue is, Divi anchor links does not jump to the right section. '/divi-anchor.I recently encountered a problem with anchor links while working on Divi builder for a client project. Simply enqueue this file in your themes functions.php, like this: none” to prevent scrolling or using global scope variables inside JS closures. Practices are “workarounds” but no clean solutions.when you use a drop-shadow below the menu and want to keep additional 20px space. When you want the page to scroll a little bit further down below the sticky menu, the code provides no solution.The script only fires once, during page load, but do not handle later clicks on anchor links that target the current site.There are a few examples on the web (like the one by Divi Booster) that work, but have some drawbacks: In fact, the Link-Anchor is always hidden behind the sticky menu, when the page can be scrolled far enough.

by using an link on the current page, Divi scrolls down too far. However, there’s one problem that frequently happens on projects I work on: When targeting a Link-Anchor, e.g. This makes the top menu sticky when you scroll further down the page. When you use Divi by Elegant Themes you most likely use the “sticky menu” feature, which is enabled by default.
