Описание
Smartupworld Video Modal provides a simple shortcode to open videos in a responsive modal window. It is lightweight, fully responsive, and works with self-hosted MP4 files as well as YouTube videos.
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/j_g1BAU_Xyw» button=»Watch YouTube» type=»youtube»]
Features:
* Lightweight and fast modal window
* Fully responsive video container
* Autoplay enabled when modal opens
* Shortcode accepts video URL, button label, and video type
* Works with self-hosted MP4 files
* Supports YouTube videos with type="youtube"
Установка
- Upload the plugin folder to
/wp-content/plugins/smartupworld-video-modal/. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Use the shortcode
[smartupworld_video_modal url="video.mp4" button="Watch Video" type="video"]in posts, pages, or widgets.
Часто задаваемые вопросы
-
Can I use YouTube or Vimeo links?
-
Yes, YouTube videos are supported by adding
type="youtube"in the shortcode. Vimeo is not currently supported. -
Yes, by passing the
buttonattribute in the shortcode. -
Can I add multiple modals on the same page?
-
Yes, each shortcode generates a unique modal.
Отзывы
Нет отзывов об этом плагине.
Участники и разработчики
«Smartupworld Video Modal» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:
УчастникиПеревести «Smartupworld Video Modal» на ваш язык.
Заинтересованы в разработке?
Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.
Журнал изменений
1.1
- Renamed plugin to Smartupworld Video Modal
- Separated CSS and JS into separate files
- Added shortcode attributes for video URL, button text, and YouTube support
- Updated usage examples to show both MP4 and YouTube videos
1.0
- Initial release with inline CSS/JS