Archived topic
Code makes my blog post not align
21 replies · Started by Terrell Jerry on November 10, 2022
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
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
See private information!
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?
See private information
Put the link below in the private area.
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/
You can embed the code on to your website.
How are you adding it? Are you adding it through an HTML Block or a Hook Element for instance?
I tried the hook
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.
I did HTML blocks and hit converted to blocks it seems to be working now.
How do I use this across certain pages global?
I see. Glad it's working now!
How do I use this across certain pages global? Will I have to do HTML blocks manually to each page & post?