• mxnet

    (@mxnet)


    Hello Support,

    my Zerif smooth scroll broke out of a sudden, after replacing front-page.php with my own code.

    I can identify this error in Chrome Dev Tools:
    Uncaught TypeError: jQuery(...).on is not a function(anonymous function) @ zerif.js?ver=bf85e918574b2ada2cb809357b367016:245

    which refers to this line of code in zerif.js
    jQuery(window).on('scroll',zerif_lite_scrolled);

    Please can someone specify code to add to my HTML, which creates the same smooth scroll effect as it was included in Zerif? I assume a simple piece of JS in the page header shall do the trick.

Viewing 1 replies (of 1 total)
  • Thread Starter mxnet

    (@mxnet)

    Hello Support,

    it seems that issue is caused only when the WP-Admin toolbar is visible. The page scrolls correctly when I’m not signed in as admin.

    However, it seems only to work on links in the nav menu.

    I have some other links in my content jumping to the contact section. They do not smooth scroll. Do I need to specify a CSS class or something for those links, so they also use the smooth scrolling?

Viewing 1 replies (of 1 total)
  • The topic ‘[Theme: Zerif Lite] Smooth Scroll Broken – How to fix’ is closed to new replies.