Tubelastica

Description

Tubelastica is a simple and reliable YouTube embed plugin designed for modern block-based WordPress sites.

It focuses on doing one thing well: embedding a single YouTube video with clean output and predictable behavior across different layouts.

The plugin works in both post content and sidebar widget areas. It is designed to avoid layout and control issues that often occur in narrow sidebar containers.

Key principles:
* One YouTube URL input
* Always-on lazy loading for performance
* Clean caption support
* Context-aware behavior for posts and sidebars
* No unnecessary styling or autoplay features

Tubelastica does not add visual styling controls or advanced playback options. Layout and appearance are handled naturally by the active theme.

How to Use

After activating the plugin:

  1. Open the WordPress block editor (post, page, or widget area)
  2. Click the Add Block (+) button
  3. Search for Tubelastica
  4. Insert the Tubelastica block
  5. Paste a YouTube video URL
  6. Optionally add a caption

Playing videos in posts and sidebars:

  • Post and page content:
    Videos are embedded and play inline as normal YouTube videos.

  • Sidebar widget areas:

    • If the link field is empty, the video plays inside the sidebar.
    • If a link is entered, clicking the video opens that link instead of playing the video.

This design helps avoid layout and control issues in narrow sidebar areas while giving users full control over video behavior.

Features

  • Embed a single YouTube video using a block
  • Lazy loading enabled by default
  • Optional caption text
  • Width control in post and page content
  • Sidebar-friendly behavior to prevent layout issues
  • Works with block-based widget areas
  • Lightweight and fast

Blocks

This plugin provides 1 block.

  • Tubelastica

Installation

  1. Upload the tubelastica folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Add the Tubelastica block in the block editor or widget editor
  4. Paste a YouTube URL and optional caption

FAQ

Does Tubelastica support sidebars?

Yes. Tubelastica works with block-based widget areas.

Why does the sidebar version behave differently from the post version?

Sidebars are often narrow and can cause embedded video controls to break.
Tubelastica is designed to behave safely in sidebars to avoid layout and usability issues.

Does Tubelastica support autoplay, mute, or styling options?

No. Tubelastica focuses on stable and predictable video embedding without advanced playback or styling controls.

Does Tubelastica support playlists or galleries?

No. Tubelastica is designed for single-video embeds only.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Tubelastica” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Tubelastica” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.7.4

  • Improved sidebar layout (default width adjusted to 95%)
  • Minor layout refinements for better sidebar display