Outlaw213 Posted July 11, 2018 Share Posted July 11, 2018 Trying to get the header to be sticky when scrolling, adding data-ipsSticky works but not on mobile devices. Is this intentional? Is there a way to make it work on mobile devices as well? Thanks ? Link to comment Share on other sites More sharing options...
newbie LAC Posted July 11, 2018 Share Posted July 11, 2018 Quote disableIn (String; optional) Sticky behavior is often not desired on mobile devices. This option allows you to disable sticky behavior when responsiveness is enabled and the device is currently using one of the viewport keys specified in this option, e.g. phone or tablet. By default disableIn value is phone You can override it <div id='elWrapper'> <div id='elStickyElement' data-ipsSticky data-ipsSticky-disableIn='coffee_maker'> ... </div> </div> Link to comment Share on other sites More sharing options...
Outlaw213 Posted July 11, 2018 Author Share Posted July 11, 2018 3 minutes ago, newbie LAC said: By default disableIn value is phone You can override it <div id='elWrapper'> <div id='elStickyElement' data-ipsSticky data-ipsSticky-disableIn='coffee_maker'> ... </div> </div> Amazing! Thank you! ? I was using the disableIn incorrectly. I had it set to: <div id='elWrapper'> <div id='elStickyElement' data-ipsSticky disableIn='none'> </div> </div> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.