Thank you for your reply. I want it to replace the project thumbnail with a video instead of an image. I need to get it from the collection so a background video won’t work. So in short, no.
I’m asking this because I have a small piece of code that might help you if you’re trying to add a video as a background so people see video looping of your project instead of the image.
Like you said if you try to add a video inside a link block it wont work because the video itself is a link as well.
That sounds great. The only caveat I could think of is that the projects is populated from the collection. So if I just put in a background video, it will be the same video on all projects. Do you know what i mean?
Hi Ros. When I try a place the HTML embed in the link block I get the same error as when i try to place a video (“Video/HTML embed can not be placed in a link”). This is my original problem.
Let me know if you can point me in the right direction.
As an option you can play with z Index of absolute blocks. You can have 1 relative wrapper block with 2 absolute layers (100% fill inside). Upper layer (z-index: 1) - is link. Lower layer (z-index: 0) - your embed with video.
That might work.
I had some time to play around with the template. I managed to get videos from Vimeo to autoplay in an embed block, populated from my collection with a text field. I used this code:
Now I still have the problem with getting the link to work. @Ros_Trocyuk can you elaborate on how to achieve the z-index trick? Or if possible, could we just put a href into the embed code? (I couldn’t get this to work)
I think I might be a little late to the party but I think I found a workaround for this. I’ve been using Webflow for years but I’ve never posted to the forums before. You all have been so much help to me over the years I thought I’d add something I figured out here.
Basically, you just need to add a link code to the HTML embed in order to get it to link. Here’s the code snippit that you can add after the Vimeo embed code (I added it on a new line).
Just replace YOUR LINK HERE with either your link or you can add a field that links to your collection item’s link field to populate them dynamically. I’m using this to run video ads.