[Resolved] Set background video in Elements as we did on Page Headers

Home Forums Support [Resolved] Set background video in Elements as we did on Page Headers

Home Forums Support Set background video in Elements as we did on Page Headers

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #663120
    Ivan Cazorla

    Hi there,

    I was wondering how I can use a video background instead of a color background in the new Elements module as we could do before on the Page Header module.

    Is this still possible to do? Or has this function been removed? I’d love to use background videos.

    Thanks,
    Ivan

    #663172
    David
    Staff
    Customer Support

    Hi Ivan,

    this is what you’re looking for:

    https://docs.generatepress.com/article/page-hero-background-video/

    It provides a lot more flexibility then the old baked in method.

    #663930
    Ivan Cazorla

    Hi there,

    Thank you. Interesting move, I’ll give it a shot.

    Thanks again,
    Ivan

    #663986
    Ivan Cazorla

    Hi there,

    I’ve got everything set up now and it’s working, but the poster image it’s not placed correctly when loads the website. See screenshot here: https://snag.gy/e7TQz9.jpg

    Thank you,
    Ivan

    #663992
    Ivan Cazorla

    Hi again. See here the image on the phone in horizontal mode: image here

    thanks again,
    Ivan

    #664164
    David
    Staff
    Customer Support

    Hi Ivan,

    can you share a link to the site?

    #664166
    Ivan Cazorla

    Sure, here it is: https://ivancazorla.com/

    thanks,
    Ivan

    #664544
    Tom
    Lead Developer
    Lead Developer

    What happens if you add this CSS?:

    video[poster] {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    #664565
    Ivan Cazorla

    I’ve already did that.

    Thanks,
    Ivan

    #664594
    Tom
    Lead Developer
    Lead Developer

    Without the media query?

    #664634
    Ivan Cazorla

    Oh, okay. Just fixed that. Looks like it’s working now.

    Thanks again,
    Ivan

    #664766
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.