WordPress.org

Make WordPress Core

Opened 20 months ago

Last modified 15 months ago

#43363 new feature request

Twenty Seventeen: Custom URL for Header Video

Reported by: fbotha Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.4
Component: Bundled Theme Keywords:
Focuses: Cc:
PR Number:

Description

Good Day

On the bundled theme Twenty Seventeen Version: 1.4.

You are only able to upload a video under the Appearance / Customize / Header Media section.

This results in video content being served from the Base URL.

i.e.

<script type='text/javascript'>var _wpCustomHeaderSettings = {"mimeType":"video\/mp4","posterUrl":"","videoUrl":"https:\/\/www.stratuscloud.co.za\/wp-content\/uploads\/2017\/06\/Flying.mp4","width":"2000","height":"1200","minWidth":"900","minHeight":"500","l10n":{"pause":"<span class=\"screen-reader-text\">Pause background video<\/span><svg class=\"icon icon-pause\" aria-hidden=\"true\" role=\"img\"> <use href=\"#icon-pause\" xlink:href=\"#icon-pause\"><\/use> <\/svg>","play":"<span class=\"screen-reader-text\">Play background video<\/span><svg class=\"icon icon-play\" aria-hidden=\"true\" role=\"img\"> <use href=\"#icon-play\" xlink:href=\"#icon-play\"><\/use> <\/svg>","pauseSpeak":"Video is paused.","playSpeak":"Video is playing."}};</script>

Thus it does not currently seem possible to serve the video from a CDN.

https://cdn.stratuscloud.co.za/wp-content/uploads/2017/06/Flying.mp4

vs

https://www.stratuscloud.co.za/wp-content/uploads/2017/06/Flying.mp4

Is it possible to override this value on database or file level or would this require an additional feature to be added to the Theme?

Attachments (1)

Header_Media.PNG (28.6 KB) - added by fbotha 20 months ago.
Header Media - Video

Download all attachments as: .zip

Change History (2)

@fbotha
20 months ago

Header Media - Video

#1 @SergeyBiryukov
15 months ago

  • Summary changed from Twenty Seventeen Theme - Custom URL for Header Video to Twenty Seventeen: Custom URL for Header Video
Note: See TracTickets for help on using tickets.