I’ve tried so as to add code to make the entire WordPress web page routinely scroll on load. No person motion must be required because the web page will load from a signage browser. We wish to show the intranet on employees room TVs, however to solely present the main-page is unnecessary that is why we would like particular landing-pages to auto-scroll. Clearly the intranet is constructed with WordPress.
I’ve discovered a few scripts that may make auto-scroll occur. However I do not know implement it on this particular use case.
Instance code for auto-scroll web page which might probably work if one is aware of implement it:
This may additionally make clear components of my downside the place auto-scroll have to be made at supply (WordPress) to make it work on the signage resolution:
Right here can be somebody that appended the code to footer.php with an if clause to make it work solely on sure publish. I’ve tried the code with out if clause inside tag like this, however I do not know if I have to name for it someplace else within the code or why it is not working: