Skip to main content

How can I add a background image to my quiz?

Written by Wendy
Updated today

You can add a background image to your quiz using Layout Image on question pages, or custom CSS for the entire quiz.

Use Layout Image on question pages

If you want an image background on your question pages, you can use the Layout Image feature on single-choice and multiple-choice questions.

Image showing the right-hand side menu of a single-choice or multiple-choice question page in the Lantern quiz builder, with General Design selected and the Layout Image section highlighted.

Add your image link in the Layout Image URL field, then set Layout Image Position to Background.

Image showing the Lantern quiz builder right-hand side menu with the Layout Image URL filled in and the Layout Image Position set to Background.

For best performance, we recommend using an image hosted on your Shopify CDN.

Use custom CSS for the entire quiz

If you want a true background image across the entire quiz, including the welcome page, opt-in page, and results page, you’ll need to use custom CSS.

You can access this from Theme Settings, then click Edit Custom CSS.

Image showing the Lantern quiz builder Theme Settings panel with an arrow pointing to the “Edit Custom CSS” button, and the Custom CSS editor open displaying a background-image property applied to the main container.

A few things to keep in mind

Because quizzes are fully responsive, each page can look different depending on the device, screen size, and content. This means large background images can stretch, crop, or sit behind text and buttons, especially on mobile or longer pages like the results page.

In most cases, the safest options are subtle repeating patterns, textures, gradients, or other simple background designs.

If you have a specific image or design in mind, feel free to share it with us. We’ll be happy to suggest the best approach.

Did this answer your question?