Add a sticky header or footer to your page via code

In order to transform the top page block into a sticky header or the bottom block into a sticky footer that stays in place when you scroll down the page, you would just need to add in this code on your page.

1. Sticky header

Add the following JavaScript code in the Page settings > JavaScript menu of your page, in the Footer section:

 

Then add the following CSS styles in the Page settings > HTML/CSS - Head:

 

2. Sticky footer

Add the following JavaScript code in the Page settings > JavaScript menu of your page in the Footer section:

 

Then add the following CSS styles in the Page settings > HTML/CSS > Head:

Note: Do not add buttons that activate a pop-up in the blocks that will be a sticky header or footer.

In case you need help with a custom functionality or any code customization that is not provided through our Help Center articles we have a Professional Services team that can help our Convert users. The Convert plan includes Professional Services as well as additional features and services that can be seen here: https://instapage.com/convert-benefits