Please note that the snippets in this article will only work for pages using the new and improved page generator, the Thor Rendering Engine. We recommend testing the snippet functionality in case your page was created before 2019 or duplicated from an older page, as the two render engines have a different code structure in the backend. To migrate your older pages to the new Thor Rendering Engine, you can contact our support team at email@example.com.
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
Then add the following CSS styles in the Settings > HTML/CSS - Head:
2. Sticky footer
Then add the following CSS styles in the 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 Enterprise users. The Enterprise Solution includes Professional Services as well as additional features and services that can be seen here: https://instapage.com/enterprise-benefits