• Lauren

    (@liliripe)


    A client I’m working with asked me to add correct and incorrect sounds to the quiz that should play once a user answers a question.

    I’ve played around with the WPProQuiz_View_FrontQuiz.php file in an effort to make the audio play, but because of the way the quiz is set up, all sounds play as soon as the quiz is loaded, instead of firing once a user answers a question.

    I tried making the audio only fire when the correct/incorrect text was visible by using the following code, but it didn’t work:

    if($('.wpProQuiz_correct').css('display') == 'block') {

    Any ideas? I’m a bit lost.

    Thanks!
    Lauren

    https://ww.wp.xz.cn/plugins/wp-pro-quiz/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Lauren

    (@liliripe)

    Any ideas? My client is hoping I can get this figured out soon. Thanks!

    webbysmart

    (@webbysmart)

    That seems difficult to pull off. You would need some sort of hard-coded customization into the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding audio for correct/incorrect answers’ is closed to new replies.