Support » Fixing WordPress » Scrolling error

  • Resolved 3lisays


    website is:

    Problem I’m having is that upon trying to scroll to the bottom of the page, the pge bounces back to the bottom of the content. Very stressful.

    Anyways, this is my first design, I disabled all plugins, still happened. I re-enabled the SEO plugin, because it wasn’t any of them, and still seeming to have problems.

    Open to suggestions, comments, and snippets of code to use.

    Many thanks.

    Also, I’m using Shoestrap theme, which is a Roots child theme/independent theme.

    I suspect there’s an issue in the theme files, since it’s not a plugin, and doesn’t happen with other themes, but I’m not a programmer, and dunno where to look.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I am not a javascript dude but the only part that I see right away that can do this is the below which is either in your header.php or your functions.php

    I don’t know how to edit it to get it to stop but just copy/paste save it somewhere and then remove it. The scrolling will stop, but will everything else still work is the question.

    !function ($) { $(function(){
    // fix sub nav on scroll
    var $win = $(window)
    , $nav = $('#main-subnav')
    , navTop = $('#main-subnav').length && $('#main-subnav').offset().top - 40
    , isFixed = 0
    $win.on('scroll', processScroll)
    function processScroll() {
    var i, scrollTop = $win.scrollTop()
    if (scrollTop >= navTop && !isFixed) {
    isFixed = 1
    } else if (scrollTop <= navTop && isFixed) {
    isFixed = 0

    Thanks, fixed. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Scrolling error’ is closed to new replies.