YouTube External Subtitles WordPress Plugin

YouTube External Subtitles WordPress Plugin

With Themes4WP YouTube External Subtitles you can display subtitles over videos from YouTube on your site. This WordPress plugin is very lightweight and easy to use. The scripts (11 kb) are loaded only on pages with the shortcode.

How to use plugin

Copy and paste the sortcode to your page or post. Add the youtube ID (only the ID – jW3XPtGczqw) and URL to subtitle file (must be stored on your host!). Set the width and height of the video if you need

[youtube-subtitles width="640" height="360" id="" sub=""]
  • id = YouTube ID (e.c. fGPPfZIvtCw)
  • sub = Subtitle URL (Must be uploaded on your host. External link is not allowed)
  • width = Video width (default 640 – in px)
  • height = Video height (default 360 – in px)

Demo

The video code

[youtube-subtitles width="640" height="360" id="jW3XPtGczqw" sub="http://themes4wp.com/wp-content/uploads/2016/05/Captain-America-Civil-War-Trailer-HD.srt"]

Subtitle example

Format of subtitle:

1
00:00:02,000 --> 00:00:06,000
Subtitle 1.1

2
00:00:28,967 --> 01:30:30,958
Subtitle 2.1
Subtitle 2.2

This plugin is based on:
https://github.com/bazh/subtitles-parser
https://github.com/siloor/youtube.external.subtitle

Leave a Reply

0Cart $0.00