ScrollTo - scroll below the horizontal menu

You can use this code to exclude one selector when you are using the ScrollTo action, so when you are using that action, you can make the slider calculate the menu's height into the scrolling event, so the slider selector or any other selector where you scroll won't be below your menu. Here is how the code looks like:

window.n2ScrollOffsetSelector = "selector";

You can put the codes into the Slider settings →  Developer tab → JavaScript Callbacks field.

These codes only work when you scroll to a given selector (like ".main-menu"). If you scroll to e.g. top, bottom or afterslider, it won't work.

First of all, find the selector of your menu. Let's say it's ".main-menu", so this is the code you should use:

window.n2ScrollOffsetSelector = ".main-menu";