Different styles for multiple quizzes
Hello! I’m thinking about purchasing the quiz styler but first have one question regarding multiple quizzes. I have a main page dedicated to a quiz with a certain style. Then, I want to add a one-question quiz into a side bar as a teaser for the main quiz. My question is, is it possible to have a different style (mainly smaller font size) in the sidebar quiz, while keeping a bigger font size on the main quiz? Thanks!
Hi Martin,
the short answer is yes!
But first… HD Quiz only allows one quiz on a page at the same time so that the quizzes do not interfere with each other.
Because of this, I have a function that checks to see what type of page a quiz is on and either shows the quiz, or creates a “view quiz” button to link directly to the quiz page. This will probably stop your quiz from loading in the sidebar.
HOWEVER, I have a custom definition that you can add to your site to stop this behaviour and allow quizzes to load anywhere, even in a sidebar. Add the line define('HDQ_REDIRECT', false); to your theme’s functions.php line if you experience any issues (and make sure to back up the file first!). Just make sure your sidebar isn’t also loaded on the same page as your other quiz!
Secondly, the Styler addon will style all quizzes the same, including your sidebar quiz. However, each quiz has a unique ID, and the styler addon as a section for “Custom CSS”. We can use these two things to set, for example, the font size of a specific quiz only.
If you purchase the addon, just create your quizzes and style as needed. Then create a new support thread on the styler addon forum with a link to a page with the sidebar quiz. I can then take a look and let you know what to add to the Custom CSS section to get the result you need.
Respond to thread
This thread has been closed / marked as resolved.
You can reply to this thread, but it might be better to start a new thread if you need help.
You can also upload images to imgur and paste the links here. Just make sure that your images don't include any sensitive information.
Submit