# Replacing src from video

**URL:** https://forum.pinegrow.com/t/replacing-src-from-video/2148
**Category:** Pinegrow WP
**Created:** [August 29, 2018, 3:00pm UTC](https://forum.pinegrow.com/t/replacing-src-from-video/2148 "2018-08-29T15:00:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![24degrees](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/24degrees/32/136_2.png) [@24degrees](https://forum.pinegrow.com/u/24degrees)
#### Post date: [August 29, 2018, 3:00pm UTC](https://forum.pinegrow.com/t/replacing-src-from-video/2148/1 "2018-08-29T15:00:45Z")

</div>

Hi everyone,

I’m having an issue with video. I’m using the following code:

```
                            <video class="video-intro" autoplay loop muted>
                                <source src="https://staging.coverr.co/s3/mp4/Meeting-Room.mp4" type="video/mp4">
                            </video>

```

Then I create a Customizer Section and a Customizer and Customizer Control. No problem with that.

But after a user has choosen a video source in the Customizer (which works), the video isn’t played. This is because I’m not sure what to do with the “Theme Mod to Attribute” thing. Currently it is set to:

Theme mod: video1  
Add IF Statement: checked  
Replace: Attribute  
Attribute: src

But when I investigate the compiled code in my browser, it says:

And although the video is item 81, this way the video won’t play of course.

Can anyone point me in the right direction please?

Thank you very much,

kind regards,

---

<div class="post-metadata">

### Author: ![schpengle](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/schpengle/32/238_2.png) [@schpengle](https://forum.pinegrow.com/u/schpengle)
#### Post date: [September 7, 2018, 9:27pm UTC](https://forum.pinegrow.com/t/replacing-src-from-video/2148/2 "2018-09-07T21:27:21Z")

</div>

WHAT does it say?  
After the :  
?  
that might help you/someone else to figure it out.
