Override widget configuration

Override widget configuration

Introduce

By default, you will get the following configuration while creating a new widget.

<script>
  (function (d, o, r, a, n) { 
    o.$doran = o.$doran || {}; o.$doran.widgets = o.$doran.widgets || [];
    o.$doran.widgets.push({ widget: 'WebDJL9bAcxkX1PkCBk0' });
    var js, e = d.getElementsByTagName(r)[0];if (d.getElementById(a)) return;
    js = d.createElement(r); js.id = a; js.src = n; js.async = !0;
    e.parentNode.insertBefore(js, e); 
  })(document, window, 'script', 'doran-jssdk', 'https://sdk.doran.app/sdk.js')
</script>

You can override the widget configuration by adding more settings. For example.

<script>
  (function (d, o, r, a, n) { 
    o.$doran = o.$doran || {}; o.$doran.widgets = o.$doran.widgets || [];
    o.$doran.widgets.push({
      widget: 'WebDJL9bAcxkX1PkCBk0',
      dateTimeFormat: ''
    });
    var js, e = d.getElementsByTagName(r)[0];if (d.getElementById(a)) return;
    js = d.createElement(r); js.id = a; js.src = n; js.async = !0;
    e.parentNode.insertBefore(js, e); 
  })(document, window, 'script', 'doran-jssdk', 'https://sdk.doran.app/sdk.js')
</script>

Supported config

We’re supporting some custom config

Config Data Type Description
dateTimeFormat String Date and time format you want to customize. Read more
isExcludeBoostPost Boolean Exclude boost post from a page.
Linda Bui
Linda Bui
Updated a week ago 1 min read

Table of contents