Support » Fixing WordPress » How to auto scroll down, when my home page loads?

  • fightbasement

    (@fightbasement)


    [ Moved to the Fixing WordPress sub-forum. Please do not use Developing with WordPress for these topics. ]

    Hey guys,
    I dont want that my visitors think my homepage consists of only a slider on my homepage, so I want if the site loads, that it is automatically scrolling down for about 400px. Without a button to click, it should scroll down to my starting text. Do you have any ideas? I Tried the plugin “Scroll down to Id” but their you have make a button that you have to click on…
    I would be so thankfull!!
    http://www.vertragszentrum.ch is my page

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @fightbasement,

    Can you please put this code in your footer.php file?

    
    <script type="text/javascript">
    jQuery(document).ready(function() {
        
        jQuery('body').animate({scrollTop: +400}, 1000);
        
    });
    </script>

    I hope this will help you.

    Thanks,
    Chetan

    Wow thanks @chetansatasiya, that really helped me!!! Do you know if there is a way to delay it for a few seconds?

    Kind regards,

    S├ębastian

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.