• Resolved nayyer

    (@nayyer)


    hi
    this plugin is doing great job within same page.
    but actually i’m using it with wordpress menus and i have implement this by changing the button1’s url to ‘#gotobottom’ and its Link Relationship (XFN) to ‘m_PageScroll2id’. and ‘#gotobottom’ div is located inside about page. plugin work only when about page is oppened. i want that page would be open when i click this button from home page or any other page. for that i have change my url like ‘https://www.dummysite/index.php/about/#gotobottom’ and it still working when about page is opened

    https://www.ads-software.com/plugins/page-scroll-to-id/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nayyer

    (@nayyer)

    need help..

    Plugin Author malihu

    (@malihu)

    Hello,
    Please update the plugin to latest version (1.5.1) as this issue is fixed.

    I think he meant by what he wrote:

    He wants it when you click on the about menu button, that the site scroll onto the page instead just working on the current page..

    This functionality I’m looking for myself also.

    I would like to know if the plugin is capable to scroll to any page not just to ids on the same page?

    Plugin Author malihu

    (@malihu)

    This requires an extra script which should be added in the page manually. The plugin (at least for now) does not offer such functionality in its core script.

    A working example of such script:

    <script>
        (function($){
            if(location.hash){
                $(window).scrollTop(0); //stop jump to hash straight away
                setTimeout(function(){
                    //stop jump to hash again a bit later
                    //for browser compatibility
                    $(window).scrollTop(0);
                },1);
            }
            $(window).load(function(){
                if(location.hash){
                    setTimeout(function(){
                        //use page scroll to id scrollTo method
                        //to animate page to location hash
                        $.mPageScroll2id("scrollTo",location.hash);
                    },1);
                }
            });
        })(jQuery);
    </script>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to scroll new page after load ?’ is closed to new replies.