Early Black Friday: Divi Doctor Lifetime for $129 (unlimited sites). Ends Cyber Monday. 14-day money-back guarantee.

Video from a custom field

Divi 5’s Dynamic Content button fills a module field from a custom field, but the Video module’s video fields don’t have that button. Divi Doctor adds it to the Video module and to each video in a Video Slider, so the video can come from a custom field, an ACF field or any other dynamic content Divi offers. This page covers how to set it up, what changes in the builder, and the limits.

Picking a custom field with the Dynamic Content button in a Video module, then playing that post’s video on the live page.

Switch it on

  1. Go to Divi Doctor → Features.
  2. Under Video module, find the Video from a custom field card and click Enable.

The card’s Divi dynamic content row shows available when Divi 5’s dynamic content was found. Existing Video modules don’t change until you pick a dynamic value in one.

Take the video from a custom field

  1. Store the video’s address in a custom field of your posts: an MP4 file address, or a YouTube or Vimeo link.
  2. Open the page or template in the Visual Builder and open the Video module’s settings.
  3. In Content → Video, clear Video MP4 File Or Youtube URL.
  4. Click the field’s Dynamic Content button and choose Custom Field.
  5. In Select Custom Field, pick your field, or keep Enter Custom Meta Key and type the field’s name into Field Name.
  6. Save, clear any page cache, and open a post that has a video in that field, logged out.

For a WebM file, do the same in Video WEBM File. In a Video Slider, open the video in the slider and use the same two fields in its Content → Video.

The picker, saving and filling in the value are Divi’s own, so every source Divi’s Dynamic Content offers for a link works here too. In a Theme Builder template, Divi reads the field of the post being viewed, so each post plays its own video.

FieldWhat the dynamic value should hold
Video MP4 File Or Youtube URLAn MP4 file address, or a YouTube or Vimeo link.
Video WEBM FileA WebM file address.

What changes in the builder

While the feature is on, a YouTube or Vimeo link in these two fields shows as its address instead of a small video preview. Divi’s builder crashes when a field with a Dynamic Content button previews a YouTube or Vimeo video, so Divi Doctor shows the link there instead. MP4 and WebM files keep their small preview, and the builder canvas still shows the video.

How it works

Divi already replaces dynamic content in a module before it renders; its video fields just had no button for it. Divi Doctor only adds the button in the builder. On the live page, Divi puts the field’s address into the module and plays it as if you had typed it. Nothing from Divi Doctor runs on the live page.

Limits

  • Divi 5 only.
  • Clear the field before you pick a dynamic value. Otherwise Divi adds the value after the address that’s already there.
  • Turning the feature off removes the button. Dynamic values you already saved keep working on the live page.

Questions

How do I use dynamic content in the Divi 5 Video module?

Switch on Video from a custom field in Divi Doctor → Features, under Video module; Divi’s video fields have no Dynamic Content button without it. In Content → Video, clear Video MP4 File Or Youtube URL, click its Dynamic Content button, choose Custom Field and pick your field. Save, clear any page cache and open a post that has a video in that field, logged out.

Does the Divi Video Slider support dynamic video URLs?

Yes. Divi Doctor adds the Dynamic Content button to each video in a Video Slider too. Open the video in the slider and use Video MP4 File Or Youtube URL or Video WEBM File in its Content → Video, the same way as in the Video module. The WebM field’s dynamic value should hold a WebM file address.

Do dynamic videos keep working if I turn off the Divi Doctor feature?

Yes. Turning the feature off removes the Dynamic Content button, but dynamic values you already saved keep working on the live page. Divi itself replaces dynamic content in a module before it renders. Divi Doctor only adds the button in the builder, and nothing from Divi Doctor runs on the live page.

If a video doesn’t play, check that the field holds a full address for the post you’re viewing. See also Features and bug fixes in the FAQ.