IT Solutions · 2021-08-23 0

Change Smartsupp Default Position

var _smartsupp = _smartsupp || {};
_smartsupp.key = '773d9';
_smartsupp.offsetX = 100; // move along the X axis by 100 pixels
_smartsupp.offsetY = 100; // move along the Y axis by 100 pixels
_smartsupp.ratingEnabled = true;
window.smartsupp||(function(d) {
  var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
  s=d.getElementsByTagName('script')[0];c=d.createElement('script');
  c.type='text/javascript';c.charset='utf-8';c.async=true;
  c.src='https://www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
})(document);



Ref: 
1. Embed a live chat on your website
https://app.smartsupp.com/app/settings/chatbox/chat-code
2. Modify configurable parts of chat box and its behavior by adding simple one line codes.
https://docs.smartsupp.com/chat-box/configuration/#sub-domains-integration
3. Advanced custom changes

4. Good for mobile site
https://domain/wp-admin/admin.php?page=smartsupp
_smartsupp.offsetX = 10; // move along the X axis by 100 pixels
_smartsupp.offsetY = 70; // move along the Y axis by 100 pixels