| 开发者 |
gredich
diarpu |
|---|---|
| 更新时间 | 2026年7月16日 02:02 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
gredich-smooth-scroll folder to the /wp-content/plugins/ directoryThere are two ways:
data-lenis-prevent attribute to any HTML element you want to exclude. For finer control, use:data-lenis-prevent | Prevent all smooth scroll events |
| data-lenis-prevent-wheel | Prevent wheel events only |
| data-lenis-prevent-touch | Prevent touch events only |
| data-lenis-prevent-vertical | Prevent vertical scroll events only |
| data-lenis-prevent-horizontal | Prevent horizontal scroll events only |
2. Using the settings page: Go to Settings > Gredich Smooth Scroll and add the element's ID or class to the exclusion list.
# (e.g., #my-element). (e.g., .my-class)Yes! You can combine data attributes with ID/class exclusions.
By default, the plugin automatically detects nested scrollable elements and lets them scroll natively. You can control this behavior from Settings > Gredich Smooth Scroll using the "Allow Nested Scroll" option.