• Resolved dholly

    (@dholly)


    Is there a way to close loading page after some time (even if page is not fully loaded) for example after 5-10 seconds?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author CodePeople2

    (@codepeople2)

    Hello @dholly

    Thank you so much for using our plugin. Yes, that’s possible. Please go to the plugin settings and tick the “Display a close screen button” checkbox. Finally enter the style definition below through the “Include an ad, or your own block of code” attribute:

    <script>setTimeout(function(){jQuery('.lp-close-screen').trigger('click');}, 2000);</script>

    Best regards.

    Thread Starter dholly

    (@dholly)

    Thank you

    Plugin Author CodePeople2

    (@codepeople2)

    Hello @dholly

    We released a plugin update Yesterday that makes the process easier. After installing the latest plugin update, purge the website and browser caches, you don’t need to activate the close screen button to hide it by coding. Furthermore, the code “Include an ad, or your own block of code” attribute could be implemented as follows:

    <script>setTimeout(function(){cp_loadingpage.onLoadComplete(true);}, 2000);</script>

    The previous code does not depend on the close screen button.

    Best regards.

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