Archived topic
Full height container with scroll snap?
5 replies · Started by Clifford on June 13, 2021
I browsed the forums for scroll snapping but didn't find what I was looking for.
And in the GP container settings, I didn't find a setting for making the container full height, like Stackable Blocks has.
1) Do you have that setting?
- and if yes, can it be offset by the fixed menu so it's not covered - I guess 100vh minus 80px should be the height of the full-height container?
2) And can a container have scroll snapping applied? Reference: https://css-tricks.com/practical-css-scroll-snapping/#example-3-vertical-full-screen
If no for either or both, please add to your enhancement list.
tyvm
Hi there,
1) Yes - the minimum height should be what you are looking for:
https://docs.generateblocks.com/article/container-overview/#minimum-height
There is no offset setting though - that would require some CSS.
Another workaround is to merge the container with navigation/header but still apply a solid color to the navigation/header:
https://docs.generatepress.com/article/transparent-header-and-navigation/
2) That's not something built-in so you will need to apply the custom CSS solution.
For future references, please use GB's support forum for GB specific questions:
https://wordpress.org/support/plugin/generateblocks/
These questions can be useful for other users as well.
Thanks!
I didn't know GenerateBlocks had its own site, login, and support forum. Do I have a pro license for that as a GenerateThemes customer? I didn't know there even was a Pro version of GenerateBlocks...
Anyway, here's my CSS code that worked: https://tourkick.com/?p=14005
To add to this:
Are you aiming for something like this? https://alvarotrigo.com/fullPage/
I believe this can be implemented with a bit of code. Let me know if you need help with it.
Well I already have a solution but am curious about my GP license if it includes GenerateBlocks Pro?
Well I already have a solution but am curious about my GP license if it includes GenerateBlocks Pro?
It's not bundled with GP Premium. GP Premium is a theme add-on while GenerateBlocks Pro is a separate plugin with a separate subscription.
While GB Pro Works best with GeneratePress, you can use it with other themes. :)