Quick and easy make a gallery for a custom set of YouTube videos provided in the shortcode and autoplay video on click in the Magnific PopUp lightbox.
Features
- Custom set of ID’s provided as shortcode attribute
id
(single of multiple ID’s separated by comma) - Custom additional class for targeted styling (if you need to blend gallery in your theme)
- Custom number of columns to distribute thumbnails to (min 1, max 8)
- Responsive thumbnails
- Autoplay with Magnific PopUp lightbox
- Well marked with classes
Classes
- Main container:
.easy_youtube_gallery
.col-#
for number of columns (default is1
, supported up to8
).ar-16_9
for 16:9,.ar-4_3
for 4:3 or.ar-square
for 1:1 aspect ratio- custom class provided by shortcode attribute
class
- Anchor:
.eytg-item
.eytg-item-#
for order number of item.eytg-item-first
for first item in gallery block.eytg-item-mid
for middle items in gallery block.eytg-item-last
for last item in gallery block
- Thumbnail:
.eytg-thumbnail
is class for span where we set video thumbnail as background image
- Play icon
.eytg-thumbnail:before
is pseudoclass for play icon
Download
ChangeLog you can find here. For download visit official WordPress.org page here http://wordpress.org/plugins/easy-youtube-gallery/ or get package below (latest or some of older versions if you like):
Installation
- Login to your WordPress.
- Go to Plugins -> Add New.
- Type to Search Plugins field keyword Easy YouTube Gallery and press Enter on your keyboard.
- Click Install Now button.
- When plugin is successfully installed, clik link Activate Plugin
- Insert shortcode (replace YT_VIDEO_ID with your set of YouTube video ID’s)
How to Use?
Please note! If you doing copy&paste from code above, before you paste content to page, post or text widget content, clear all formatting by paste© to/from Notepad or other plain text editor!
Shortcode parameters
id
(required) single YouTube video ID or multiple ID’s separated with commaar
(optional) aspect ratio of thumbnails; default isar-16_9
for 16:9, but also supportedar-4_3
for 4:3 andar-square
for 1:1cols
(optional) for number of columns to distribute thumbnails in; devault is1
, supported up to8
thumbnail
(optional) for YouTube size of thumbnail; default ishqdefault
but we can use:0
have resolution 480x360px1
,2
and3
have resolution 120x90px (first, second or third frame)default
have resolution 120x90px (Default Quality)mqdefault
have resolution 320x180px (Medium Quality)hqdefault
have resolution 480x360px (High Quality)sddefault
have resolution 640x480px (Standard Definition) and does not exists for lowres videosmaxresdefault
have resolution 1920x1080px (Full HD) and does not exists for lowres videos
controls
(optional) to optionally hide playback controls in lightbox player (default is1
that means “display controls”, but you can set it to0
to hide controls)playsinline
controls whether videos play inline or fullscreen in an HTML5 player on iOS. Learn more on Google Developersprivacy
(optional) enables enhanced privacy which means that YouTube won’t store information about visitors on your web page unless they play the video.class
(optional) to add custom style class if you wish to target specific styling for your own needs
Preview
FAQ
Do I need to wrap shortcode parameters to doublequotes or singlequotes?
No. I even suggest to you avoid wrapping shortcode parameters to double/single quotes to prevent broken output when some plugins modify content with nasty filters.
Just avoid empty space between ID’s.
Support
If you need help, first try to read documentation and then check community support forum.
And we appreciate your support
Spread voice about Easy YouTube Gallery on social networks, rate and review on WordPress.org, feedback in comments below or