I denne vejledning viser Elliot Richmond dig, hvordan du opretter en subtil, animeret glidende sticky navigationslinje ved hjælp af blokvariationer, CSS og JavaScript.
Bemærk at menuen indarbejdes i et Tema !
Denne WordPress-bloktema teknik tilføjer en kreativ glidende navigationsbjælke, der vises, når der rulles ned på siden.
En glidende sticky navigationsbjælke.
Elliot Richmond demonstrerer
- brug af Navigation
- oprettelse af menu
- tilføjelse af features
- integration i et tema.
Men ikke mindst en masse om udviklingsarbejdet.
Learn how to easily create a sticky header and footer on your WordPress website with no plugins required!
Jamie Marsland gives examples of how to achieve a sticky menu or header.
There is also an example of getting a text sticky at the bottom using a little CSS:
.bottom-menu {
position: fixed;
bottom: 0;
width: 100%;
z-index: 100;
}Manage templates and template parts and add Google Fonts to Full Site Editing / Block themes without a child theme!
Webd.uk made a plugin Options for Twenty Twenty-One specific for Twenty Twenty-One theme - the last default theme with the traditional Customizer.
With the dawn of FSE as default in the coming default templates, they hace made a new allround plugin with some missing features. Some are since then now available in Gutenberg.
My primary interest is these two features:
- STICKY HEADER
- ANIMATE SITE LOGO
Worth exploring in a sandbox...
5 tips to make your WordPress Gutenberg designs less boxy.
- Add beautiful shapes into pages
- Create stylish galleries
- Add seamless Photo cut outs
- Improve readability with snazzy sticky backgrounds
- Mirror text with shape design
The Gutenberg Sticky Block can be added to any Post or Page and will be sticky as soon as it hits the top of the page after you scroll down. The Sticky Block can contain any other Blocks (Paragraphs, Images, etc.), and can also be used in other Blocks (e.g. Column or Table).
Jamie Marsland makes at short presentation here: 5 Quick and Easy Ways to Make Your WordPress Content Better. For instance how to use the Pushup Element