Dear Kimberly
@kimberlyxx
Cool website! To be sure is your JS added via a "newpage event"? 🔍(realised i didnt ask this first)
https://laytheme.com/documentation.html#custom-javascript
Lay Theme is a Single page app meaning the ready event only fires once on page load. This creates seamless navigation as new projects and pages are not a new 'Hard load'. This may help answer you question as to why the behaviour is a certain way.
Example:
window.laytheme.on("newpageshown", function(layoutObj, type, obj){
// JS inserted here --
});
Am i correct this is your Code?
jQuery('[data-type="project"]').on('click', function() {
console.log('project clicked');
});
The console log seems to be working:
Screen Shot 2021-11-01 at 11.26.20 AM.png
So you want some JS saying similar to:
jQuery('[data-type="project"]').on('click', function() {
console.log('project clicked');
jQuery("body").scrollTop()
});
Talk soon Kimberly & best wishes ✨
Richard