Gorgias logo
Gorgias logo

All articles

Reduce sub-header text size and spacingUpdated a month ago

This suggestion isn't an official feature of our Chat widget, so our support for it is limited - we recommend that it be implemented by someone with a technical background.


1<script>
2 var initGorgiasChatPromise = (window.GorgiasChat) ? window.GorgiasChat.init() : new Promise(function (resolve) { window.addEventListener('gorgias-widget-loaded', function () { resolve(); }) });
3
4 initGorgiasChatPromise.then(async () => {
5 GorgiasChat.on('widget:opened', function () {
6 const chatTitle = document.querySelector('#chat-window')?.contentWindow.document.querySelector('[aria-label="Live chat window header"]')
7 chatTitle.childNodes[0].style.paddingTop = '15px';
8 chatTitle.nextSibling.style.paddingTop = '0';
9 chatTitle.nextSibling.style.fontSize = '15px';
10 })
11 })
12</script>
Was this article helpful?
Yes
No