
外掛標籤
開發者團隊
原文外掛簡介
KU Sticky Video for YouTube is a lightweight WordPress plugin that automatically makes YouTube video players inside post content follow the scroll position, showing in the corner of the page when the original video scrolls out of view.
This plugin contains minified JavaScript for performance. The complete, unminified source code is publicly available on GitHub:
https://github.com/karasunouta/ku-sticky-video-for-youtube
Build Instructions
To rebuild the minified assets, run the following commands in the plugin directory:
1. npm install (to install build dependencies)
2. npm run build (to compile the source files using @wordpress/scripts)
Features
Float YouTube video when scrolled out of view.
Customizable exclude CSS class to prevent specific videos from floating.
Beautiful and clean admin settings page to configure options.
How can I prevent a specific YouTube video from floating?
You can add the excluded CSS class (configured in the settings page, default: no-sticky) to the YouTube block or its parent container in the WordPress editor under “Advanced” -> “Additional CSS class(es)”.
1.6.1
Fix: Adjusted Japanese translation spacing and punctuation to align with the WordPress translation style guide.
1.6.0
Add: Option to select display position (Bottom Right or Bottom Left).
Add: Option to automatically disable sticky video on narrow (mobile) viewports.
Improve: Enhance internal hooks and architecture to support future extensions.
1.5.0
Rename: Renamed plugin from “Sticky YouTube” to “KU Sticky Video for YouTube”.
Update: Updated version to 1.5.0.
1.4.3
Fix: Compatibility headers and PHP version.
Fix: Settings page security enhancements.
Add: License declarations for WordPress.org submission.
1.0.0
Initial release.
