# Adding a fixed strip on LPs

**URL:** <https://community.hubspot.com/t/adding-a-fixed-strip-on-lps/38322>\
**Category:** CMS Development\
**Tags:** html\
**Created:** [June 3, 2021, 7:08am UTC](https://community.hubspot.com/t/adding-a-fixed-strip-on-lps/38322 "2021-06-03T07:08:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![doroness](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/doroness/32/38459_2.png) [@doroness](https://community.hubspot.com/u/doroness)\
**Post date:** [June 3, 2021, 7:08am UTC](https://community.hubspot.com/t/adding-a-fixed-strip-on-lps/38322/1 "2021-06-03T07:08:18Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Jake\_Lett](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jake_lett/32/45178_2.png) [@Jake\_Lett](https://community.hubspot.com/u/Jake_Lett)\
**Post date:** [June 3, 2021, 1:19pm UTC](https://community.hubspot.com/t/adding-a-fixed-strip-on-lps/38322/2 "2021-06-03T13:19:07Z")

</div>

I have a few questions in order to make a definitive recommendation.

1. Is your website and blog on the same HubSpot account?
2. Do your landing pages share a global javascript file? Or are they a mixture (marketplace templates and custom templates)?
3. Are these templates drag and drop or code based?

---

<div class="post-metadata">

**Author:** ![doroness](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/doroness/32/38459_2.png) [@doroness](https://community.hubspot.com/u/doroness)\
**Post date:** [June 6, 2021, 5:27am UTC](https://community.hubspot.com/t/adding-a-fixed-strip-on-lps/38322/3 "2021-06-06T05:27:30Z")

</div>

Hi  
1. No

2. A mixture - mainly custom

3. A mixture  
Thanks!

---

<div class="post-metadata">

**Author:** ![Jake\_Lett](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jake_lett/32/45178_2.png) [@Jake\_Lett](https://community.hubspot.com/u/Jake_Lett)\
**Post date:** [June 6, 2021, 5:36pm UTC](https://community.hubspot.com/t/adding-a-fixed-strip-on-lps/38322/4 "2021-06-06T17:36:12Z")

</div>

Hi @doroness based on your reply I have two options you can choose from.

1. Create a global module that you manually add to all of your templates.
2. [Add some javascript to your footer site settings](https://knowledge.hubspot.com/cos-general/how-can-i-add-code-snippets-to-the-head-and-footer-html-of-my-pages) 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\>
