We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5356c08 + bae045f commit 381b247Copy full SHA for 381b247
Block/AbstractDataLayer.php
@@ -52,7 +52,8 @@ protected function _toHtml(): string
52
if ($this->config->isEnabled()) {
53
$dataLayer = $this->getDataLayer();
54
if ($dataLayer) {
55
- return '<script>
+ //style for always be display none,since some sliders add class that makes script be display flex/block
56
+ return '<script style="display: none;">
57
window.dataLayer = window.dataLayer || [];
58
window.dataLayer.push(' . json_encode($dataLayer) . ');
59
</script>';
0 commit comments