Custom size (width/height)

In this tutorial we will show to you how to better and simply change the Tiledesk Widget size on your website

Steps to make them is very easy:

  1. Copy and paste the basic widget script code

  2. Subscribe to onInit Tiledesk event

  3. Add custom stylesheet to override the default values

Here is the full code example

        <script type="application/javascript">
            var PROJECT_ID = "<<TILEDESK_PROJECT_ID>>"
                projectid: PROJECT_ID,
                startHidden: true,
            (function(d, s, id) {
                var w=window; var d=document; var i=function(){i.c(arguments);}; 
                i.q=[]; i.c=function(args){i.q.push(args);}; w.Tiledesk=i; 
                var js, fjs=d.getElementsByTagName(s)[0]; 
                if (d.getElementById(id)) return; 
      ; js.async=true; js.src="";
                fjs.parentNode.insertBefore(js, fjs);

            window.Tiledesk('onInit', function (event_data) {
                //var tiledeskDiv = document.getElementById("tiledeskdiv")

                var head = document.getElementsByTagName('head')[0];
                var style = document.createElement('style');
       = 'customStyle';
                style.type = 'text/css';

                style.innerHTML += '#tiledeskdiv { height: 800px; width: 400px; }\n';


        This Tiledesk example will change the widget size in height and width as you want
            <b>Agents available:</b> <span id='available'>loading availability...</span>

View result here

Last updated