[Resolved] smooth-scroll class on custom menu

Home Forums Support smooth-scroll class on custom menu

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #873838
    Daniel

    I applied smooth-scroll class to circular menu About button. The jump link is to the h2 tag below the video. I also added this php code to my functions.php file:

    add_filter( 'generate_smooth_scroll_duration', 'tu_smooth_scroll_duration' );
    function tu_smooth_scroll_duration() {
        return 600; // milliseconds

    Instead of scrolling, the page reloads and jumps to the link. I’m up to date on theme and GP premium (1.7.8). Also, I did check Smooth Scroll in Customize > General

    Thanks,
    Daniel

    #873852
    David
    Staff
    Customer Support

    Hi there,

    the smooth scroll will only work with on page links so the URL in your anchor tag has to be just the ID of the element you want it scroll to e.g #top

    #873856
    Daniel

    Bam. Thx!

    #874303
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.