• Resolved sakuravaanlonhart

    (@sakuravaanlonhart)


    Hi! I want to put an image instead of a text on the Next question and back button but when I use the html code ( <img src=”my image.jpg”> ) on the options panels fo the plugin, it gives me an error because of the ” “.

    What should I do?

    Thanks!

    https://wordpress.org/plugins/slickquiz/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author jewlofthelotus

    (@jewlofthelotus)

    @sakuravaanlonhart Hmm, those fields should accept HTML content. Is the warning coming from WordPress when you try to save the button copy change? Or is the error coming from SlickQuiz when you try to render the quiz on the post or page?

    Thread Starter sakuravaanlonhart

    (@sakuravaanlonhart)

    It doesn’t get me a warning…its more like…hmmm the Options panel becomes “strange”. When I put the html code and update the options… it becomes like this:

    http://imageshack.com/a/img823/9338/1b06.jpg

    As you can see… it becomes weird since everything that should be between ” its erased and the /> it’s outside the editing square… If I remove the ” “, it doesn’t happen but of course, then the html code it’s incorrect and the image doesn’t load…

    Thanks for your answer and for your pluggin btw.

    Plugin Author jewlofthelotus

    (@jewlofthelotus)

    Ah I see! Ok, well I think there’s definitely a bug I can fix on my end.

    For now there’s a few things you could try. First, try saving the value with single quotes rather than double. If that doesn’t work, try escaping the double quotes with slashes like: <img src=\"image-path.jpg\">. And if that doesn’t work, try the same thing but with single quotes.

    Hopefully one of those will work, in the meantime I’ll set up a bug and add it to the queue for the next update.

    Thanks for your help digging into this! Glad SlickQuiz is meeting your needs!

    Thread Starter sakuravaanlonhart

    (@sakuravaanlonhart)

    Oh, thanks! I though for a moment that I was doing something wrong…

    Ok, I’ve solved it somehow. Just uploaded the image to my wordpress so the link would look like this myweb.com/image.jpg then I can put it like this <img src=/img.jpg> aaannnd everything solved.

    Thanks for your fast answer!!!!

    Plugin Author jewlofthelotus

    (@jewlofthelotus)

    Glad to hear you got it working! Thanks for choosing SlickQuiz!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image on Buttons’ is closed to new replies.