I have been trying to add to the anchor offset position when an additional sticky menu is used on some pages. I am using the Sticky Menu (or Anything!) on Scroll plugin.
I am trying to use the code referenced on Transparent Navbar Parallax Scroll - Support - Themeco Forum
jQuery(function($){
window.csGlobal.csHooks.filter('ready', function() {
window.csGlobal.csHooks.filter('hash_scrolling_offset', function(offset) {
return offset + $('.sticky-sub-menu').height();
});
});
});
It doesn’t seem to work though.
Is this code still valid or has something changed in a recent release? I am using version 8.3.3
Is there a particular place I should be adding this? I have tried in the Page JS and Global JS sections as well as an external JS file, but none seem to work.
Any guidance would be appreciated.
I am working locally, so I don’t have a URL to share ATM.