• mohdimran123

    (@mohdimran123)


    In which file can I find the code related to Timer. I have the issue related to resetting of timer, but being new to programming i am finding it difficult to stop the resetting of timer after reloading of page. Please guide me ?

Viewing 1 replies (of 1 total)
  • Plugin Author Harmonic Design

    (@harmonic_design)

    Hi mohdimran123.
    DO NOT edit any files in HD Quiz.

    You can achieve this by adding some JS and PHP to your theme (or better yet, create a new plugin so that your changes persist across theme changes).

    Please carefully ready through this entire thread that you previously replied to as well. It goes over why I think doing this is a bad idea, as well as instructions and advice on what to do if you want to go ahead and do it anyways 🙂

    What you have to do is save the timer status as a cookie every second. You also need to detect if a timer has been saved on page load so that you can resume it.

    Please know that this is NOT something easy or quick to do and I in no way recommend doing something like this or condone it. Good luck, and always check the WordPress development docs for help and support.

    https://developer.wordpress.org/plugins/

    (also, the timer code can be found in hd-quiz/includes/js/hdq_script.js if you want to see how the timer is used)

Viewing 1 replies (of 1 total)

The topic ‘Timer resets After Reloding Of Page’ is closed to new replies.