A website I recently worked on had the following requirement: The site owner should be able to enter the ID of a YouTube video when editing Posts. For posts that have video ID provided, the thumbnail should automatically be pulled from YouTube and shown on the archives with a video icon overlayed. Clicking on the […]
YouTube
YouTube Videos Grid in Genesis using ACF Pro’s Repeater, Infinite Scroll and Featherlight
Updated on April 10, 2018 This tutorial covers the details of setting up a repeater type custom field for YouTube video URLs and displaying these on the front end in a grid of thumbnails, which when clicked plays the corresponding videos in a lightbox. We shall add a custom pagination (hidden) which is needed for […]
Making YouTube videos responsive when using Dynamik
On a website I am currently working on the active theme is Dynamik, a commercial child theme for Genesis. There’s a YouTube video in the content on homepage inserted via the WordPress oEmbed that automatically inserts the player by detecting video URL in the following format: http://www.youtube.com/watch?v=4EErMxbKhLM The video is not responsive at smaller widths […]
How to render YouTube video URL with player when using Views
In a recent site I worked on, my task was to display values of custom fields attached to a CPT. One of these custom fields is a URL field named “YouTube Video” added via Types plugin. I tried a couple of free plugins from the WP repository including WP YouTube Player that would display YouTube […]
Recent Comments