7 Steps to Add a Video Gallery Widget to a Duda Website

Example of a Video Gallery Widget for Duda Sites

Share

The Need For a Video Gallery

According to Google, 2+ billion users watch more than 1 billion hours of YouTube videos every day. The opportunity for web marketers is to leverage YouTube video's ubiquity to achieve a brand's objectives.  

In some cases, leveraging video entails attracting users to a youTube channel or using it in social media. In other cases, we want to embed videos on a website to help prospective customers to know, like, trust, try and buy our brands.

Adding single videos to a Duda website is simple using the native Duda widget. You can also add individual videos using an iframe in an HTML widget described here. However, there's no simple way to add a collection of videos to a Duda webpage in a compact, user-friendly form using the platform's native functionality.

This article provides detailed instructions for implementing a compact, user-friendly custom video gallery widget for the Duda platform that enables uses to navigate through and view a series of related videos.

Video Gallery Features


Flexibility

Support countless use cases by adding one or more related or unrelated videos to your gallery. 

More Traffic

Improve search performance with SEO-friendly structured data added for each video. 

Easy to Build and Use

Follow a few simple steps to add and configure a full-featured video gallery for your website.

Engage Visitors

Maximize engagement and convey your message with videos organized and served in a user-friendly format.

Using the Video Gallery Widget

Once added to your Duda account, access and use the Video Gallery Widget like other native Duda widgets.
Web design and development - gallery widget user interface panel
Web design and development - custom gallery widget user interface panel
Important Note: If you use other custom widgets with CSS code on the same web-page as the Video Gallery Widget, download, copy and paste the code to include the stylesheets in the page's header HTML as shown below.
Include CSS stylesheets when using the video gallery widget
Header HTML Code

Structured Data

The Video Gallery Widget adds a schema videoObject like the example below for each video in the gallery.
Example of the schema videoObject created with the video gallery widget for Duda sites

Requirements

You must have a Duda plan that permits access to the Widget Builder to add the Video Gallery widget to your account.

If you have no prior experience creating Duda widgets, you can learn the basics here.
Return to Contents

Hosting Unite Gallery Source Code

The Video Gallery widget is built using Unite Gallery open-source code.  The Unite Gallery sources must be hosted on an accessible web server.  

If you do not have your own web server to host the sources, you may reference existing sources on the Protellus-provided web server:  

https://stockolio.org/scripts/protellus/unitegallery/dist 
Return to Contents

License

Both the Unite Gallery code and the Video Gallery code are provided with MIT licenses. You can view the original Unite Galley license here and the Video Gallery license here.
Return to Contents
Step 1

Download Unite Gallery source code

Note: If you use the Unite Gallery sources hosted on the web server provided by Protellus you may omit Step 1, Step 2Step 5.1, Step 6.1, and Step 6.2.
Unite Gallery Source Code
Step 2

Copy the Unite Gallery sources to your web server

Note: If you use the Unite Gallery sources hosted on the web server provided by Protellus you may omit this step.
Unzip the unitegallery-master.zip file downloaded in the previous step.

Use cPanel, or your hosting platform's file manager, to copy the unitegallery-master/dist sub-directory tree to your host system. 
Source location for custom widget
Make note of the path to the dist sub-directory.   You will need this path in steps 5.1 and 6.1, and 6.2.   For example: 
https://stockolio.org/scripts/protellus/unitegallery/dist
Confirm the Unite Gallery files were posted correctly and accessible from your web server by entering the path to the ./themes/grid/ug-theme-grid.js source file into a web browser address bar and display it's content.
Verify proper installation of Unite Gallery source files
Step 3.1
uniqueId is the element ID of the HTML div that will contain the Video Gallery Widget  

When using the Video Gallery Widget, ensure the entered value is unique for each instance of the widget on the page.
Custom widget html element id
Step 3.2
thumbsNail specifies the configuration of the tumbnail display panel.
Thumbnail configuration on video gallery
Step 3.3
autoPlay specifies whether the video is played without user action when the page is loaded.

off - video is not automatically played
on - the first video is automatically played when the page is first loaded.
Auto play setting for the video gallery
Step 3.4
onePublisher specifies whether all of the videos included in the gallery are from the same publisher.   Use for creating schema data.
Video publisher information for video gallery
Step 3.5
onePublisherName specifies the name of the publisher of all videos in the gallery.

This field is used only when onePublisher is true .
Video publisher name for video gallery
Step 3.7
Add the onePublisherLogoWidth slider.
Video publisher logo dimensions
Step 3.8
Add the onePublisherLogoHeight slider.
Video publisher logo dimensions
Step 3.9
videoList is the list of videos to be added to the gallery

The Link items label to an input parameter is assigned after the itemName element is created in step 3.9.9.
Video list included in video gallery
Step 3.9.1
Add the videoId text widget.  
Shareable YouTube Link for custom video gallery
Step 3.9.2
Add the videoTitle text widget.  
Video title in video gallery widget
Step 3.9.3
Add the videoDescription text widget.  
Video description in video gallery widget
Step 3.9.4
Add the minutes and seconds text widgets.  
Video duration (minutes) in video gallery widget
Video duration (seconds) in video gallery widget
Step 3.9.5
Add the uploadDate date widget.  
Video upload date in video gallery widget
Step 3.9.6
Add the thumbnailImage image widget.  
Video thumbnail image in video gallery widget
Step 3.9.8
Add the publisherLogoWidth and publisherLogoHeight  slider widgets.  
Video publisher logo dimension in video gallery widget
Video publisher logo dimension in video gallery widget
Step 3.9.9
Add the itemName  text widget.
Video item name in video gallery widget
Step 4

Download the Slider HTML code and copy it to the html tab of the Duda Widget Builder.

Step 5

Download the Gallery Widget CSS code and copy it to the css tab of the Duda Widget Builder.

Step 5.1
Change the @import instructions to reflect the path to the dist sub-directory on your web server.
Note: If you use the Unite Gallery sources hosted on the web server provided by Protellus you may omit this step.
Step 6

Download the Video Gallery javascript code and copy it to the javascript tab of the Duda Widget Builder.

Step 6.1
Change the gridTheme assignment to reflect the path to the dist sub-directory on your web server.
Note: If you use the Unite Gallery sources hosted on the web server provided by Protellus you may omit this step.
Step 6.2
Change the uniteGalleryScript assignment to reflect the path to the dist sub-directory on your web server.
Note: If you use the Unite Gallery sources hosted on the web server provided by Protellus you may omit this step.
Step 7

Save and Publish the Widget

Download the Video Gallery widget icon provided here and then upload the .SVG file to the Duda Widget builder.

Save the changes and publish the widget.

Need Help Implementing the Video Gallery Widget?

We'll make it super easy or you.  
Fill out the order form below and we'll implement the widget on your site for $100 USD.

Contact Us

The Video Gallery Widget is offered exclusively to clients with Duda susbscriptions featuring Widget Builder access.  



If you like find the Video Gallery Widget useful or this page helpful, please consider referencing this page with a do-follow backlink.