KU Sticky Video for YouTube

KU Sticky Video for YouTube

Details
View on WordPress

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.

Details

Plugin code:
ku-sticky-video-for-youtube
Plugin version:
1.5.6
Outdated:
No
WP version:
5.6 or higher
PHP version:
7.4 or higher
Test up to WP version:
7.0
Total installations:
0
Last updated:
2026-06-10
Rating:
Times rated:
0
floating
scroll
sticky
video
youtube