• Resolved KTS915

    (@kts915)


    The latest update is great! I can now have questions in random order, show the correct answers after completion of the test (even if not selected by the test-taker), and change the next and finish buttons’ text.

    In addition, the fact that you’ve now made the scripts load only when an HD Quiz shortocde is in use means that they are now minifying properly. (It must have been a javascript conflict before.) Now I’m busy converting my quizzes from another plugin into HD!

    There are just a couple of issues I am experiencing. Both appear to be caused by changes introduced in this update:

    1. You now have scripts loading on wp_head. This breaks other things on my site. Could you revert to using wp_enqueue_scripts, please? I am guessing you were trying a different hook to see if it solved the minification issue, but that’s now solved by loading scripts only when necessary. When the wp_enqueue_scripts hook is used, everything works as intended.

    2. I can’t now use HTML tags like <em> ... </em> in the answers. This was possible before, and it’s quite important for my usage. Would it be possible to re-enable this capability, please?

    Thanks very much!

    https://www.ads-software.com/plugins/hd-quiz/

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

    (@harmonic_design)

    Hi KTS915,
    glad you like the new features!

    1) wp_head hook

    1. I’m actually using this help determine if the shortcode is being used in the content. Hooking at wp_footer is too late.
    2. Are you saying that the scripts are loading in the header for you now? The only thing wp_head is used for is to check for the shortcode, then it enqueues the script in the footer like normal
    3. Have you checked your rendered page source to see if the scripts are still loading in the footer?

    Please let me know! Also, it still might be an issue with ZenCache for you as well, so something to look into.

    2) HTML tags in answers

    I’ll look into this ASAP and get a solution pushed. Thanks for letting me know!

    Thread Starter KTS915

    (@kts915)

    Wow, you’re fast!

    So far as wp_head is concerned, I’ve tried it both with Zen Cache Pro activated and deactivated, and it makes no difference. Either way, hooking to wp_head causes problems, whereas hooking to wp_enqueue_scripts does not.

    In any event, I am not sure why hooking to wp_enqueue_scripts would be too late. I use other plugins that use shortcodes and that hook into wp_enqueue_scripts, and they all work fine.

    Plugin Author Harmonic Design

    (@harmonic_design)

    Hello KTS915,

    1) I think you are right! I read up on the wp_enqueue_scripts hook and it’s definitely the better hook to use.

    2) I believe I fixed the html tags in answers.

    Please deactivate then delete the plugin, then reinstall from the repository and let me know if it’s working for you – including ZenCache ??

    Thread Starter KTS915

    (@kts915)

    FLAWLESS!! That is with or without ZenCache, and on my Android phone too. A review and donation will be on their way shortly!

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Thanks for the Latest Update!’ is closed to new replies.