Tried Updating the Widget Image

distribute

#1

So I’ve done this before to customize the widget image, but it’s not working any more. Is the help doc on this process still accurate? I have followed it exactly, and I repeated the process three separate times, but once I add the custom image the widget disappears off of the site. The only answer I can come up with is something is missing on the help doc to complete this process. I’m adding the widget to a WordPress site. FYI I can pull the image script and the widget will reappear with one of the stock bot images. I copied the image width and height off of the example. It’s in PNG format… At this point, I don’t know what else to do :man_shrugging:t2:


#2

Let me know Which Bot? I’ll Check.


#3

This one https://mvd.hellotars.com/conv/HkzB2p/
The widget is on https://mtrealid.gov
And the script I can’t get to work looks like this based on the tutorial:

<script>(function(){var js,fs,d=document,id="tars-widget-script",b="https://tars-file-upload.s3.amazonaws.com/share/";if(!d.getElementById(id)){js=d.createElement("script");js.id=id;js.type="text/javascript";js.src=b+"js/widget.js";fs=d.getElementsByTagName("script")[0];fs.parentNode.insertBefore(js,fs)}})();window.tarsSettings = {"convid":"HkzB2p", “img”:“https://mtrealid.gov/wp-content/uploads/2018/04/real-id-bot-logo.png”};</script>


#4

Looks like double quote character issue.

Use these: “convid”
Instead of these: “img”


#5

Rookie mistake haha Works just fine now! Hopefully this will help others in the future :slight_smile: