[wp-trac] [WordPress Trac] #43363: Twenty Seventeen Theme - Custom URL for Header Video
WordPress Trac
noreply at wordpress.org
Tue Feb 20 04:52:13 UTC 2018
#43363: Twenty Seventeen Theme - Custom URL for Header Video
-----------------------------+-----------------------------
Reporter: fbotha | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 4.9.4
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
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?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43363>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list