• [ 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!!
    https://www.vertragszentrum.ch is my page

Viewing 3 replies - 1 through 3 (of 3 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

    This solution is not working for me actualy. Can I have to clean the cache or something else before ? I have the exact same problem as fightbasement.
    About the plugin “Scroll down to Id” : You can add the Id to the end of the link page. No need button. But I don’t want to add #Id in my link for SEO and other reasons.

    Is it another solution available to auto scroll down when my page is loading for each post ? Because I think the solution from chetansatasiya (footer.php) have effect to all the website ?

    I saw a couple of topics where people saying this is no need to use jquery. scrollTop function is natively working for majority of browsers. No need smooth transition in my situation.

    Would some people have solutions ?

    Thank for the help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to auto scroll down, when my home page loads?’ is closed to new replies.