var body = document.body; body.className += " u-body u-xl-mode"; body.style.cssText += " background-position: 50% 50%; background-image: url('https://www.cppadrenostro.it/images/nicepage-images/376ed8ad3e53ffe1ab02ae1ca05fe9f9.jpg');"; var dataBg = ''; if (dataBg) { body.setAttribute('data-bg', dataBg); } Papa Francesco 48