Smartupworld Video Modal
v1.4Smartupworld Websolutions · 2025年11月2日 上架
Display videos in a responsive modal via shortcode. Supports self-hosted MP4 files and YouTube videos.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 1,143
- 最近更新
- 2026年9月15日
需要 WordPress 5.0+已测试到 7.1.5PHP 7.4+
Smartupworld Video Modal provides a simple shortcode to open videos in a lightweight, responsive modal window. No jQuery dependency. Works with self-hosted MP4 files and YouTube embeds.
Usage examples:
-
Self-hosted MP4 video:
[smartupworld_video_modal url=”https://example.com/video.mp4″ button=”Watch Video” type=”video”] -
YouTube video:
[smartupworld_video_modal url=”https://www.youtube.com/embed/VIDEOID” button=”Watch on YouTube” type=”youtube”]
Features:
- Lightweight — no jQuery dependency
- Fully responsive video container
- Autoplay when modal opens
- Close via button, backdrop click, or Escape key
- Accessible (ARIA roles, keyboard navigation)
- Multiple modals supported on the same page
- Works with self-hosted MP4 and YouTube embeds
- Dev mode to disable asset caching during development