-
Notifications
You must be signed in to change notification settings - Fork 102
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
Tutorial - Adding a sticky header or banner #1435
Comments
Hey @westnz, the weird work around in this release is to add the header template part inside a group from the template page (Home, etc). Once in a group block, it'll be sticky. Less ideal, but should see a fix in 6.3 |
Yes, that's correct, Courtney. One thing I also noticed is changing the Group block's background colour; otherwise, it is transparent. Thanks! |
Sticky.Positioned.Blocks.Tutorial.mp4 |
This looks fantastic, Wes! Concise and easy to follow. Optional addition: The only “gotcha” I’ve had with this feature is that sometimes the group block adds extra padding (Twenty Twenty-Three does this). You might consider mentioning that it may take some adjustments to the group and navigation block to get the desired effect. |
WP 6.4 |
WP 6.4 It is now also available for others patterns |
Hey @courtneyr-dev I see now that patterns will also be able to become sticky, so a full revision is required. 👍 |
I will possibly update and reuse as part of the User learning pathway. |
@westnz Do you think we will be reusing this? |
Yes, as a standalone lesson but it needs to be updated at some point. |
Topic Description
Users can now position the Navigation Bar to stick to the top of the screen by nesting the Header inside a Group block and selecting “Sticky” from the Position option.
Related Resources
Links to related content on Learn, HelpHub, DevHub, GitHub Gutenberg Issues, DevNotes, etc.
Guidelines
Review the team guidelines
Tutorial Development Checklist
The text was updated successfully, but these errors were encountered: