We have several LPs for various templates (some HTML + HUBL some were made via the editor).
We want to add a fixed strip with some CTA text to all of the LPs. Is there a global way to do it, or do we need to add id for each template or each LP?
Will modifying an existing template won't cause any issues with the pages based on it?
Hi @doroness based on your reply I have two options you can choose from.
Create a global module that you manually add to all of your templates.
Add some javascript to your footer site settings to apply code to your entire site. This is a hammer approach but can work if you are good with javascript and can create rules around when your code fires. Below is an example script. <script type="text/javascript"> window.addEventListener('load', function() { $('<div id="notice" style="text-align:center;position:fixed;top:0;background:#ccc;width:100%;padding:0.5rem;">This is a global notice</div>').prependTo('body'); $( "body" ).css('padding-top',$( "#notice" ).height() ); }, false); </script>
Hi @doroness based on your reply I have two options you can choose from.
Create a global module that you manually add to all of your templates.
Add some javascript to your footer site settings to apply code to your entire site. This is a hammer approach but can work if you are good with javascript and can create rules around when your code fires. Below is an example script. <script type="text/javascript"> window.addEventListener('load', function() { $('<div id="notice" style="text-align:center;position:fixed;top:0;background:#ccc;width:100%;padding:0.5rem;">This is a global notice</div>').prependTo('body'); $( "body" ).css('padding-top',$( "#notice" ).height() ); }, false); </script>