OllieWP / ollie

A finely-crafted WordPress block theme by Mike McAlister
https://olliewp.com
GNU General Public License v3.0
334 stars 44 forks source link

Sticky header not working #113

Closed ischnee closed 5 months ago

ischnee commented 5 months ago

Describe the bug Using FSE I edited the header and chose position "sticky". But when I visit the site, the header scrolls and is not sticky. The div class in the header has "is-position-sticky", but it still scrolls and doesn't stick.

To Reproduce Steps to reproduce the behavior:

  1. Go to: my website: https://ianschnee.com/
  2. Click on: the header with inspector.
  3. Scroll down to div in the header.
  4. See: class "is-position-sticky"

Expected behavior Expected header to be sticky, but it scrolls.

Desktop (please complete the following information):

Additional context Thank you!

mikemcalister commented 5 months ago

Hi there,

This question has been answered a few times. Check out this thread for an example of how to make it work. https://github.com/OllieWP/ollie/issues/19