Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sticky feature not working [Bug]: #7854

Closed
mosesmed opened this issue Jun 13, 2024 · 5 comments
Closed

Sticky feature not working [Bug]: #7854

mosesmed opened this issue Jun 13, 2024 · 5 comments
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". Needs triage [Pri] TBD [Type] Bug Something isn't working

Comments

@mosesmed
Copy link

Quick summary

The sticky feature is not working when the group block within the header block is set to Sticky.

I've tried it with 3 themes on the Creator Plan and also the Explorer Plan. I've also used the Twenty Twenty Four theme, it didn't work.

Steps to reproduce

  1. Activate the Twenty Twenty Four theme on the Creator Plan
  2. Go to the editor and set the Group block within the header block as sticky
  3. You can replicate same issue with other themes even on the Explorer Plan.

What you expected to happen

The section set as sticky ought to remain sticky at the top of the screen.

What actually happened

The section set as sticky scrolled off the screen like normal page.

Browser

Mozilla Firefox

Context

No response

Platform (Simple, Atomic, or both?)

Simple, Atomic

Other notes

No response

Reproducibility

Consistent

Severity

All

Available workarounds?

None

Workaround details

No response

@mosesmed
Copy link
Author

8312006-zen

Copy link
Contributor

Support References

This comment is automatically generated. Please do not edit it.

  • 8312006-zen

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label Jun 13, 2024
@coder-mahfuz
Copy link

To make the sticky header work you will have to wrap the header element inside a group block and then set that group blocks position to sticky. Can you try the steps I have shown in this video: https://www.loom.com/share/16464cfbdff54a3caa8571c73d02efd0?sid=fa27cf78-5c04-4d37-8a17-fea7fd84afa4

@mrfoxtalbot
Copy link

mrfoxtalbot commented Jun 18, 2024

What @coder-mahfuz says (thank you!)

I am going to close this but please feel free to reopen if the issue persists after adding the header template to a group and making that top-level group sticky.

Thanks @mosesmed!

@mrfoxtalbot mrfoxtalbot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 18, 2024
@mrfoxtalbot
Copy link

To clarify further, this is indeed very confusing and needs to be fixed in core:

WordPress/gutenberg#47043
WordPress/gutenberg#50617
WordPress/gutenberg#56147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". Needs triage [Pri] TBD [Type] Bug Something isn't working
Development

No branches or pull requests

3 participants