WordPress.org

Ready to get started?Download WordPress

Forums

Page scroll to id
Scroll not working on iphone? (4 posts)

  1. popgirl23
    Member
    Posted 4 months ago #

    My site...

    greatnorth.us

    the scroll doesnt seem to be working for the iphone.

    I've also installed WP Scroll To Top that IS scrolling. But the anchors (Page Scroll 2 ID) are not.

    Anyone help? Thank you.

    https://wordpress.org/plugins/page-scroll-to-id/

  2. malihu
    Member
    Plugin Author

    Posted 4 months ago #

    Does the plugin work if you set it to scroll to #top (same link/id as WP Scroll To Top)?

    Maybe it has something to do with the CSS positioning or visibility of the target elements. Try removing visibility:hidden from the target anchors.

  3. popgirl23
    Member
    Posted 4 months ago #

    hhhmmm I removed the visibility:hidden style from target anchors anchors. That didn't work.

    I also saw found somewhere else to try adding this to the anchor styles:
    overflow:scroll;
    -webkit-overflow-scrolling:touch;

    That didn't work.

    I did create a small hand written test scroll (lower right of page) using only #top and that worked.

    Im still not sure why the Page Scroll To Id scrolling function isn't working for small devices? Even just with a narrow width browser. It just jumps to anchor.

  4. malihu
    Member
    Plugin Author

    Posted 3 months ago #

    Does any other script bind click event(s) on your mobile menu links?

    I checked your menu links in developer tools and it seems that normal menu has the 'Page scroll to id' click handler which works. You mobile links seem to have another click handler (2 click handlers total) and those links do not work. Maybe another script/plugin makes your mobile links "jump" to the ids below or something similar?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags