Skip to main content

Customizing Widget Position in the Advanced Code

Updated over 10 months ago

UserWay's Widget offers an advanced embed code allows site owners to customize the look and feel of their widget more dynamically. i.e., when a chatbot is opened, a site owner may want to move the widget icon to a different location so it does not interfere with the chatbot.

To customize the position using Advanced code, uncomment s.setAttribute("data-position", 1); and replace 1 with your desired position on the page:

7

8

1

6

2

5

3

3

The above table visually represents the positions below.

  • Top right: 1

  • Middle right: 2

  • Bottom right: 3

  • Bottom middle: 4

  • Bottom left: 5

  • Middle left: 6

  • Top left: 7

  • Top/middle: 8

Did this answer your question?