[Resolved] Legacy Headers in Elements

Home Forums Support [Resolved] Legacy Headers in Elements

Home Forums Support Legacy Headers in Elements

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #651623
    Michael

    How long will the legacy headers be supported if I do not disable them because I need the video function in the header?

    #651948
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    The legacy Page Headers will never be removed from the plugin.

    However, you can easily add a video background to the new Page Hero: https://docs.generatepress.com/article/page-hero-background-video/

    This method gives you way more control πŸ™‚

    #652110
    Michael

    Thank you. That’s exactly what I was looking for. Great work!

    #652299
    Tom
    Lead Developer
    Lead Developer

    No problem! πŸ™‚

    #655068
    Joe

    Note that the video won’t play on a mobile device. In order to have the poster image display nice on your mobile device, I would suggest you add to the css the following (I tested this specifically on my iPhone so you might want to take this a step further and test on other devices including tablets):

    @media( max-width: 480px ) {
        video[poster] {
            object-fit: cover;
            width: 100%;
            height: 100%;
        }
    }

    Otherwise, your poster image may simply be zoomed in on an irrelevant portion of the image.

    #655118
    Tom
    Lead Developer
    Lead Developer

    Cool – thank you for sharing that! πŸ™‚

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