- This topic has 21 replies, 3 voices, and was last updated 3 years, 5 months ago by
David.
-
AuthorPosts
-
November 10, 2022 at 11:32 pm #2410791
Terrell Jerry
Hello, this CODE: (Loading…<script>(function(i,s,o,g,r,a,m){var ql=document.querySelectorAll(‘A[quiz],DIV[quiz],A[data-quiz],DIV[data-quiz]’); if(ql){if(ql.length){for(var k=0;k<ql.length;k++){ql[k].id=’quiz-embed-‘+k;ql[k].href=”javascript:var i=document.getElementById(‘quiz-embed-“+k+”‘);try{qz.startQuiz(i)}catch(e){i.start=1;i.style.cursor=’wait’;i.style.opacity=’0.5′};void(0);”}}};i[‘QP’]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,’script’,’https://take.quiz-maker.com/3012/CDN/quiz-embed-v1.js’,’qp’);</script>) rearanges my blog post makes the content go middle, right, left & look crazy.
What hook will keep it from doing that it’s a quiz that I would like to put at the end of each blog post if possible.
thanks,
JERRY
November 10, 2022 at 11:55 pm #2410816Fernando Customer Support
Hi Jerry,
For reference, can you provide the link to where we can view this Quiz on your site?
You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
November 11, 2022 at 12:08 am #2410831Terrell Jerry
See private information!
November 11, 2022 at 12:27 am #2410852Fernando Customer Support
I can’t see the script added to this page.
May we know where this script is from? Do they say where to add this specifically?
November 11, 2022 at 12:29 am #2410856Terrell Jerry
See private information
November 11, 2022 at 12:31 am #2410859Terrell Jerry
Put the link below in the private area.
November 11, 2022 at 12:42 am #2410873Fernando Customer Support
I can’t find a document from this site saying how it can be added to a WordPress site.
Have you considered using a plugin instead?
I found this article which may be helpful: https://www.wpbeginner.com/showcase/best-quiz-plugins-for-wordpress/
November 11, 2022 at 12:45 am #2410878Terrell Jerry
You can embed the code on to your website.
November 11, 2022 at 12:53 am #2410882Fernando Customer Support
How are you adding it? Are you adding it through an HTML Block or a Hook Element for instance?
November 11, 2022 at 12:56 am #2410886Terrell Jerry
I tried the hook
November 11, 2022 at 12:59 am #2410887Fernando Customer Support
Can you try adding it again so we can see the issue? You can add it on a Test page if your testing in your live site.
November 11, 2022 at 1:01 am #2410888Terrell Jerry
I did HTML blocks and hit converted to blocks it seems to be working now.
November 11, 2022 at 1:05 am #2410890Terrell Jerry
How do I use this across certain pages global?
November 11, 2022 at 1:05 am #2410891Fernando Customer Support
I see. Glad it’s working now!
November 11, 2022 at 1:07 am #2410893Terrell Jerry
How do I use this across certain pages global? Will I have to do HTML blocks manually to each page & post?
-
AuthorPosts
- You must be logged in to reply to this topic.