• Can these new video headers be used throughout the site or elsewhere a theme?

    For example if you wanted a full page video with content over the top, not just in the header.

    Are all the settings now bundled in with 4.7 and if so how do you call the markup to display on the page, or can it only be displayed within header.php

    A nice feature for 4.7, even nicer if could be customisable.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Did the video headers come from your theme? If so which theme? Or was it a plugin, which?

    Thread Starter jezthomp

    (@jezthomp)

    No theme setup yet, i’m just wondering if the video headers can be pulled in anywhere throughout the site almost like a featured image?

    Or is something else converting the mp4 to ensure its playable across all browsers?

    All the technical details, including template tags, for video headers are written up here: https://make.www.ads-software.com/core/2016/11/26/video-headers-in-4-7/

    It looks like the best opportunity to re-use the functionality is to use the the_custom_header_markup() template tag, but use the get_header_video_settings filter to change the video URL under whichever conditions you need. You could create a custom meta box/field to set a custom video URL page, then use that filter to change the the header video URL to that field value.

    Regarding conversion, it doesn’t appear that WordPress is doing anything there. It relies in you using a correctly formatted video.

    • This reply was modified 8 years, 2 months ago by Jacob Peattie.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP 4.7 Video Headers anywhere on the site?’ is closed to new replies.