How do I add my own CSS & Javascript on top of Quiz Kit?
Quiz Kit allows you to apply your own CSS & Javascript code on top of our widget loaded on your website.
How to apply custom CSS?
Simply add it directly on the Styles page:
Add it to your theme files. Please apply CSS to quiz elements IDs, tags, or other attributes, but not classes, as those are dynamic and can change. You can find needed IDs, tags, and attributes by inspecting the page in your browser
How to apply custom Javascript?
Simply add your own javascript code to the needed Intro, Question or Result page. Same as with CSS, use quiz elements IDs, tags or other attributes, but not classes. Please note: that Javascript code will be fired only on that Intro, Question or Result page where it was added.
Add javascript code to your theme files and it will work! You can use custom Javascript events listed below.
Custom Javascript events
We have a few javascript events that you can use for different purposes:
"quizKitQuestionLoaded" event. This event is fired when your customer landed on the question page. You can use this event to add some custom labels, text, content on particular questions. This event will contain question data in the next format:
Add the code below for catching this event:
"quizKitCapturePageLoaded" event. This event is fired when your customer landed on the email capture page. You can add some additional checkboxes or other elements to this page. Add the code below for catching this event:
"quizKitResultsPageLoaded" event. This event is fired when your customer landed on the result page. You can use this event to send your Quiz data anywhere. This event will contain Quiz data in the next format:
Add the code below for catching this event:
"quizKitAddToCart" event. Each time your customers click on the "Add to bag" button on your quiz result page this event is fired. This event is fired before items are actually added to cart. Add the code below for catching this event:
"quizKitAddToCartSuccess" event. This event is fired right after items were added to cart. You can use this event to create a direct connection with your Theme's Ajax(Slide out) cart. Add the code below for catching this event:
Last updated