Add Subtitles to a video in WordPress

in Random

I faced an interesting challenge last week: I wanted to add subtitles to a video I had inserted in a page with WordPress’ Core Video Shortcode, but I couldn’t find any shortcode parameter allowing me to specify a subtitle file.

I checked the shortcode’s source code but couldn’t find any “subtitle” attribute there. The Codex page wasn’t helpful either. After more digging, I realized that the whole thing was in fact super easy!

WordPress Video Options

When using the core WordPress video player, follow these steps to add subtitles to a video:

  1. Go to Media > Add New in the post editor.
  2. Upload and insert the video into the post.
  3. Switch to the Visual Editor if you are using the Text editor (like I was.)
  4. Click on the video, and then on the little pencil icon appearing above the video:

Edit a video in the WordPress Post editor.

  1. In the modal that pops up, you’ll be able to add new subtitles thanks to the menu on the left. You will also be able to make changes to every other option for that video.
  2. Save your changes, and you’re all set! Super easy!

I edited the Codex page to mention the video editor, and I hope this post will help others who may be googling to find out how to add subtitles to WordPress videos. ?

By the way, if you’re looking to create subtitles for a video you’ve created, I would recommend that you give Amara a try; their translating interface is really good.