Video Gallery

Use this gallery to display videos inline. You can choose to upload your videos to your website or to show videos hosted on YouTube/Vimeo/Wistia.

Gallery

  Settings used for this example:

Component Inspector

Gallery Selector/ID#videos
Gallery LayoutThumbnails
Gallery Width1100
Gallery Height450

Page HTML

<div id="videos"> 
    <div data-type="youtube"
    	 data-title="Waimea cliff jump"
    	 data-description="Waimea cliff jump description"
    	 data-thumb="https://i.ytimg.com/vi/sogCtOe8FFY/mqdefault.jpg"
    	 data-image="https://i.ytimg.com/vi/sogCtOe8FFY/sddefault.jpg"
         data-videoid="sogCtOe8FFY" ></div>
    <!-- Further links to videos omitted for brevity... -->
</div>

Custom CSS

.ug-theme-video {
    margin: 0 auto;
}

Explanation: Instead of picking a media folder, we set the "Gallery Selector/ID" option in the component inspector. We then have to add a div that matches the specified selector, and add the gallery items as described here. The div that we added is shown in the Page HTML box above.
We also set the gallery layout to "Thumbnails" and an explicit width and height for the gallery that matches the proportions of our videos with some space on the side for the thumbnails. We add a CSS rule (in a stylesheet that we manually add to our layout) to center all galleries with the "video" theme within their container.


  Script options...

Gallery

  Settings used for this example:

Component Inspector

Gallery Selector/ID#videos-2
Gallery LayoutTitles Only

Page HTML

<div id="videos-2"> 
    <div data-type="youtube"
    	 data-title="Waimea cliff jump"
    	 data-description="Waimea cliff jump description"
    	 data-thumb="https://i.ytimg.com/vi/sogCtOe8FFY/mqdefault.jpg"
    	 data-image="https://i.ytimg.com/vi/sogCtOe8FFY/sddefault.jpg"
         data-videoid="sogCtOe8FFY" ></div>
    <!-- Further links to videos omitted for brevity... -->
</div>

Custom CSS

.ug-theme-video {
    margin: 0 auto;
}

Explanation: Again we set the "Gallery Selector/ID" option in the component inspector and add a div that matches the specified selector, and add the gallery items inside that div as described here. The div that we added is shown in the Page HTML box above.
We also set the gallery layout to "Titles Only". We add a CSS rule (in a stylesheet that we manually add to our layout) to center all galleries with the "video" theme within their container.


  Script options...

Gallery

  Settings used for this example:

Component Inspector

Gallery Selector/ID#videos-2
Gallery LayoutNo Thumbnails

Page HTML

<div id="videos-3"> 
    <div data-type="youtube"
    	 data-title="Waimea cliff jump"
    	 data-description="Waimea cliff jump description"
    	 data-thumb="https://i.ytimg.com/vi/sogCtOe8FFY/mqdefault.jpg"
    	 data-image="https://i.ytimg.com/vi/sogCtOe8FFY/sddefault.jpg"
         data-videoid="sogCtOe8FFY" ></div>
    <!-- Further links to videos omitted for brevity... -->
</div>

Custom CSS

.ug-theme-video {
    margin: 0 auto;
}

Explanation: This is the same as the previous gallery excep that we set the gallery layout to "No Thumbnails".


  Script options...


  All Available Component Inspector Options for Video Galleries



  Script options applicable to all "Video" galleries...

You can read more and see a lot of examples at the UniteGallery website!