How to set the position of a custom attention grabber

[Desktop]

You can upload your logo or another custom image as a custom attention grabber to let website visitors know an agent is available and ready to chat via your widget.


Because custom attention grabbers vary in size and shape, we’ve created a way for you to set the exact placement for your image.


Follow the steps for one of the two methods below. You can either drag and drop your attention grabber into place manually or use the JavaScript API for precision placement.


NOTE: The instructions below can only be completed from a browser or the tawk.to desktop apps. They cannot be completed in the tawk.to mobile app.

Manually place a custom attention grabber

If you have multiple properties, check to make sure you're viewing the correct one by hovering over the hamburger icon at the top of the Dashboard.

Make your way to ⚙️Administration ChannelsChat Widget.


Under Widget Appearance, click Advanced.

Then, slide the Attention Grabber toggle to the on (green) position.


Once the Attention Grabber is enabled, click the Gallery button.

In the lower left of the Gallery, select Upload.

Upload your image. It will appear in the desktop widget preview on the right side of the Widget Appearance panel.


Then, drag the uploaded image in the preview area to change its position on the page. You can place it next to or over your widget.

When you have the attention grabber in the position you want, click the Save button to update your details.

Place a custom attention grabber using the JavaScript API

You can also set the position of a custom attention grabber using the customStyle object in the JavaScript API.


Add the code below to your existing widget code.


Note: Do not place this object in a function, as the values need to be available before the widget script is downloaded. Setting or changing the values after the widget script has been downloaded will not update the widget’s style.

Need help? Reach out to our support team or schedule a call

Was this article helpful?

25 out of 34 liked this article

Still need help? Message Us