Jump to content

Recommended Posts

Posted

@bfarber: Thank you for this! This works wonderfully at larger viewports, however would be better if it did not apply to mobile/tablet viewports. How can this be done for large viewports only? For example, when mobileNav appears, remove the data-ipsSticky element from ipsLayout_header?

Posted

I tried adding two strings to the data-ipSticky-disableIn element, yet no go. ='phone,tablet' or ='phone tablet'... but nopes. 😞

I suppose there's not an enableIn equivalent that I could just specify 'desktop'?

Posted

Thanks, @Morrigan. That was a typo here, but in my theme I had it spelled correctly. I dug into the javascript library after posting and saw that there is a split on commas, so the correct syntax (for anyone else wanting to do the same) is data-ipsSticky-disableIn='phone,tablet'.

After trying that and doing a hard refresh (CTRL + F5), I had the desired result. Thanks @bfarber!

  • 5 weeks later...
Posted

So, reporting back on this. Some issues.

While I managed to get the desired result, there are two places that issues remain:

  • dialog boxes that "pop up" are covered by the sticky header (for example, sending warnings to a user, or private message notifications. These either need to have a higher z-index, or be pushed further down the page.
  • anchored links (jumping to a specific post halfway down a thread, for example) are covered up by the header.

Are there solutions for these side-effects that can be implemented?

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...