Scrolling problem

jan-dusek
4 Posts
jan-dusek posted this 04 September 2015

Hello,

I have a problem with scrolling in wordpress theme. All templates I prepared have always scrolling bar and page scrolls (even home page). There is no reason for scrolling, because nothing is out of view, but it scrolls... just i little (apr 100px). I tried to cancel all elements in Themler (Header, Footer, Sidebars) to find out which one causes it, but even with only background it scrolled. Is there any setting about this? I tried to set overflow to every element, but it didn´t help. In fact I am really starting to be crazy of this. I would need to have scrolling when necessary, but when there are only two small widgets on page there is no reason for scrolling.

I would really appreciate your help.

Many thanks.

Hello, I have a problem with scrolling in wordpress theme. All templates I prepared have always scrolling bar and page scrolls (even home page). There is no reason for scrolling, because nothing is out of view, but it scrolls... just i little (apr 100px). I tried to cancel all elements in Themler (Header, Footer, Sidebars) to find out which one causes it, but even with only background it scrolled. Is there any setting about this? I tried to set overflow to every element, but it didn´t help. In fact I am really starting to be crazy of this. I would need to have scrolling when necessary, but when there are only two small widgets on page there is no reason for scrolling. I would really appreciate your help. Many thanks.
Vote to pay developers attention to this features or issue.
4 Comments
Order By: Standard | Newest
Stagger Lee
1818 Posts
Stagger Lee posted this 05 September 2015

Seems as browser calculate wrong viewport when you are logged in and have admin bar at top. Try logged out and problem with scrolling dissapear.
I would not bother about it, unless you have User registration activated.

Seems as browser calculate wrong viewport when you are logged in and have admin bar at top. Try logged out and problem with scrolling dissapear. I would not bother about it, unless you have User registration activated.
Stagger Lee
1818 Posts
Stagger Lee posted this 05 September 2015

This simple snippet helps with scrolling problem. Or remove admin bar completely on frontend, find on Google how.

add_action('wp_head', 'adjust_sticky_footer');
function adjust_sticky_footer() {
    if(is_admin_bar_showing()) { ?>
        <style type="text/css">
            html {
                height: calc(100% - 32px);
            }
        </style>
    <?php
    }
}

This simple snippet helps with scrolling problem. Or remove admin bar completely on frontend, find on Google how. add_action('wp_head', 'adjust_sticky_footer'); function adjust_sticky_footer() { if(is_admin_bar_showing()) { ?> <style type="text/css"> html { height: calc(100% - 32px); } </style> <?php } }
jan-dusek
4 Posts
jan-dusek posted this 05 September 2015

Thanks for the advice, but in fact this script didn´t solve my problem. But I´ve decided to do it another way.

Thanks for the advice, but in fact this script didn´t solve my problem. But I´ve decided to do it another way.
Stagger Lee
1818 Posts
Stagger Lee posted this 05 September 2015

It helped on all my WP sites with this problem. Your is clearly different, depending of your Themler settings,

Just for note, it is not Themler problem. It is known WP problem with admin bar and viewport 100% height.

It helped on all my WP sites with this problem. Your is clearly different, depending of your Themler settings, Just for note, it is not Themler problem. It is known WP problem with admin bar and viewport 100% height.
You must log in or register to leave comments