Dynamic Background Video Link for Sections
Prerequisites
- [x] I have searched for similar features requests in both open and closed tickets and cannot find a duplicate.
- [x] The feature is still missing in the latest stable version of Elementor ( Elementor Pro. )
It would be great if we could get a dynamic option for the background video link AND fallback image for the section elements. Extending this request, I think a dynamic option for almost everything would be great.

+1
+1
+1
+1
+1 and support local hosted/ Cloudflare stream video for performance.
+1
OMG +100
Yes please!
+1
i have requested the same i think it will be great in that option will be added
You can use this solution 1- Download the video you need from youtube 2- Give the video a (bg-video) Name or any name 3- uploaded it to the media folder, "I recommend creating videos folder" 4- copy the link and paste it in Elementor section video link holder its works and you can rename any downloaded video and replace the file Check this sample: https://thecarsdealer.com
Faris
+1000 PLEASE... this is really necessary guys
+1!!! I just need exactly this for single post template. Does someone maybe have a workaround in the meanwhile? Thanks.
An alternative I found was to enable shortcode for video link (background_video_link). In this way it is possible to work defining the video using the shortcode, making this value dynamic. Example: [acf field = "introduction_video"]. Add this code to your theme's functions.php file.
<?php
add_action( 'init', function(){
add_action( 'elementor/frontend/section/before_render', function ( \Elementor\Element_Base $element ) {
if ( ! $element->get_settings( 'background_video_link' ) ) {
return;
}
$element->set_settings( 'background_video_link', do_shortcode($element->get_settings( 'background_video_link' ) ) );
} );
});
An alternative I found was to enable shortcode for video link (background_video_link). In this way it is possible to work defining the video using the shortcode, making this value dynamic. Example: [acf field = "introduction_video"]. Add this code to your theme's functions.php file.
<?php add_action( 'init', function(){ add_action( 'elementor/frontend/section/before_render', function ( \Elementor\Element_Base $element ) { if ( ! $element->get_settings( 'background_video_link' ) ) { return; } $element->set_settings( 'background_video_link', do_shortcode($element->get_settings( 'background_video_link' ) ) ); } ); });
Hi David, this looks like a great solution for what I'm looking for, but I'm confused on where you place the shortcode after putting the code in your functions.php. Mainly I'm looking for a solution that if someone choose an image in their ACF field, it would do a image background and if they choose to do a video, it would do video, suggestions?
@jakebradley2001 , the code snippet is to be added to the functions.php file, to enable it to be possible to interpret the shortcode added in that field of the video.
About changing colors, I know it is possible to do this using the PRO version, where you define assignments, and you can choose a custom field, being able to use the ACF. And in the advanced settings of the attributes, you can define: style | background:. In this way the elementor transforms it into style = "background: Color defined Shortcode"
+1
@davidchc Hi there, first of all, thank you for helping with this. I am trying to implement it in my site.
- I added your code to the functions.php
- i have an ACF field (type= url and slug= background_video) and
- i added this shortcode ini the elementor [acf field = "background_video"] .
What am i doing wrong here?? i get no video... sorry.. i am a real noob at this.. thanks in advance!
@kostas33, a test you can do is to add the post id in the shortcode, to know it is pulling the url correctly register in a post. Example:
[acf field = "background_video" post_id = "123"]
@davidchc the problem is that the video is in categories, category archive page, not posts... :(