Warning: Cannot modify header information - headers already sent by (output started at /home/jerwon11/divtagtutorials.com/wp-content/plugins/captcha/captcha.php:1) in /home/jerwon11/divtagtutorials.com/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 60
How to set specific image size for video lightbox widget

How to set specific image size for video lightbox widget

By default the image size is to spend full width for responsive setting purposes. You can set a specific image size in the widget code snippet if you like. Please note this will remove the responsiveness of the widget.

Simply add the code highlighted below to add a width and height to the video lightbox image thumbnail:

Vimeo

<a class='vimeo' href="http://player.vimeo.com/video/49092271" title="INSERT TITLE HERE"><img src="INSERT IMAGE URL HERE" style="width: 100px; height: 100%;"/></a>

Youtube

<a class='youtube' href="http://www.youtube.com/embed/VOJyrQa_WR4?rel=0&wmode=transparent" title="INSERT TITLE HERE"><img src="INSERT IMAGE URL HERE" style="width: 100px; height: 100%;"/></a>

Tags: , , ,