(help) is there anyway to make learndash quiz timer sticky?

underwater

Active member
Nov 26, 2020
256
63
28
Dear awesome people on Babiato, especially learndash users and coding expert,

As the title says, I am looking for advice or tutorial to make *learndash quiz timer always sticky and always visible to the quiz taker*?

Is it possible to achieve this? Please help

The questions are displayed about 50 questions at quiz , but since the timer is always on top of the quiz page, many site users complain that they can not notice the time limit is ending before they finish test, they hope that they can always see the time limit all the time no matter how far they scroll down.

Thank you for your time reading my request
 

underwater

Active member
Nov 26, 2020
256
63
28
Hi bro,
I found the solution already by using this plugin below. It works like i expected and the free version let me put the *timer element sticks visible to the user*.


It works for my older site with the older wp version and learndash version.

When i tried to use the same method for the latest, ld and wp, the timer shows zero (when the page is scrolled). I am not sure why, but I assume it is related to the wp version or learndash version or the compatibility of that wp plugin.

Hopefully you can share your ideas about it brother..
 
  • Like
Reactions: TassieNZ

Dieds

Active member
Aug 1, 2019
130
40
28
Hi bro,
I found the solution already by using this plugin below. It works like i expected and the free version let me put the *timer element sticks visible to the user*.


It works for my older site with the older wp version and learndash version.

When i tried to use the same method for the latest, ld and wp, the timer shows zero (when the page is scrolled). I am not sure why, but I assume it is related to the wp version or learndash version or the compatibility of that wp plugin.

Hopefully you can share your ideas about it brother..
What version of Sticky Menu are you using? is the latest version?
 

waverhan

New member
May 4, 2022
2
2
3
I am not sure about the version, but I guess not the latest one.

So are you saying learndash the current version has the floating (sticky) timer option? Have you tried it?

I have not seen it
By default Learndash does not seem to have it. But with the use of a plugin like Quiz Customizer for Learndash you can put the timer below the screen. There are a few other options to customize the timer.
 
  • Like
Reactions: underwater

underwater

Active member
Nov 26, 2020
256
63
28
By default Learndash does not seem to have it. But with the use of a plugin like Quiz Customizer for Learndash you can put the timer below the screen. There are a few other options to customize the timer.
Have you ever tried that plugin, bro?

I have not found the floating/sticky option descriptions , on the plugin overview page..

Will it work for a one page quiz with many questions (not one page, one question) ?
 

waverhan

New member
May 4, 2022
2
2
3
Have you ever tried that plugin, bro?

I have not found the floating/sticky option descriptions , on the plugin overview page..

Will it work for a one page quiz with many questions (not one page, one question) ?
Yes I have tried it. Not sure if it is alright for a many-questions-on-a-page type of quiz. Do you need it?
 
  • Like
Reactions: underwater

underwater

Active member
Nov 26, 2020
256
63
28
Yes I have tried it. Not sure if it is alright for a many-questions-on-a-page type of quiz. Do you need it?
Yes, brother. I am using it for my students when taking an english listening quiz that can not be devided into many pages, so there are at least 15 questions in a page.

I used to be able doing it with sticky menu sticky header free plugin. But recently it doesn't work to let the timer sticky without being zero numbers. It shows 0 when user scrool. Not sure what's changed
 

waverhan

New member
May 4, 2022
2
2
3
Here is the file- Learndash Quiz Customizer. Got probably from this forum. Hope this helps you.
 

Attachments

  • learndash-quiz-customizer1.3.7.zip
    55.7 KB · Views: 16
  • Like
Reactions: underwater

elofran

Well-known member
Dec 20, 2020
349
249
63
Murcia
murcia.cat
That has an easy solution, in fact they have given you the same one.

Open file:
Code:
learndash-quiz-customizer\templates\legacy\learndash_quiz_messages.php

And comment the lines about 900 with /* */ this way it will take the one you have in learndash by default, which you will have it translated.


Code:
case 'quiz_questions_answered_correctly_message':

        $message = '<p>' . sprintf( esc_html_x( '%1$s of %2$s questions answered correctly', 'placeholder: correct answer, question count', 'learndash' ), '<span class="wpProQuiz_correct_answer">0</span>', '<span>' . $placeholders[1] . '</span>' ) . '</p>';

    break;
 

transfeo

Member
Oct 4, 2018
31
11
8
That has an easy solution, in fact they have given you the same one.

Open file:
Code:
learndash-quiz-customizer\templates\legacy\learndash_quiz_messages.php

And comment the lines about 900 with /* */ this way it will take the one you have in learndash by default, which you will have it translated.


Code:
case 'quiz_questions_answered_correctly_message':

        $message = '<p>' . sprintf( esc_html_x( '%1$s of %2$s questions answered correctly', 'placeholder: correct answer, question count', 'learndash' ), '<span class="wpProQuiz_correct_answer">0</span>', '<span>' . $placeholders[1] . '</span>' ) . '</p>';

    break;
Thanks a lot!
 
  • Like
Reactions: elofran

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu