Archived topic
How to add a ID to footer.
1 reply · Started by Shivam on May 26, 2020
I am using Q2W3 widget to make sidebar float, but on mobile when website is scrolled down, the sidebar widgets crashes in the footer. In Q2W3 widget there is stop ID option which I think is given to make the floating widgets stop after the given ID.
So How to give Footer a ID in generate press
Hi there,
If you just need an element with an ID that you can set then do this:
1. Create a new hook element:
https://docs.generatepress.com/article/hooks-element-overview/
2. Add this to the hook content:
<div ID="your-custom-ID"><!-- Stop Sticky here --></div>
3. Select the before_footer hook
4. Set Display Rules to Entire site.