Quiz results broken image [RESOLVED]

Hi all,

I think this has happened before but I can’t remember where the fix was. When someone completes my quiz they are sent an email notification with the results. Next to each correct answer there should be a tick, and incorrect should be a cross, but currently it just shows the image broken link symbol when it should show https://www.languagexchanges.com/wp-content/plugins/gravityformsquiz/images/green-check-icon.svg)

Some email clients don’t properly show SVG images, which is the file type that those indicators are. There are two filters to change these (one for correct and one for incorrect):

You can use those two filters to change the images to png or something more universally supported. Once you have a suitable PNG image on your server and have updated the code in those filters, you can add the filters to your theme functions.php file, or a functionality plugin if you use one. I have started using this one lately for custom code that is not tied to the theme, and I really like it:

See also this article for additional placement options for your PHP:
This is PHP code that can be added to your theme functions.php file, or you can use a plugin such as this one to keep the code separate from the theme: Code Snippets – WordPress plugin | WordPress.org

Please see this article for additional information on placing PHP snippets: https://docs.gravityforms.com/where-do-i-put-this-code/#h-php

Let us know if that helps you resolve the problem, or if you need anything else.

That’s the one, thanks so much for your help!

1 Like