Description
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
The source code corresponding to the submitted version is now available on the wp-org-review branch:
https://github.com/karasunouta/ku-sticky-video-for-youtube/tree/wp-org-review
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.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.
Installation
- Upload the plugin files to the
/wp-content/plugins/ku-sticky-video-for-youtubedirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Configure the settings under Settings -> KU Sticky Video for YouTube.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“KU Sticky Video for YouTube” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “KU Sticky Video for YouTube” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


