[wp-trac] [WordPress Trac] #42353: Header video does not load below 900px after resized and refreshed. (was: Twenty Seventeen: Header video does not load below 900px after resized and refreshed.)

WordPress Trac noreply at wordpress.org
Sat Apr 6 18:44:21 UTC 2024


#42353: Header video does not load below 900px after resized and refreshed.
-------------------------------+------------------------------
 Reporter:  sachyya sachet     |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Themes             |     Version:  4.8.2
 Severity:  normal             |  Resolution:
 Keywords:  close 2nd-opinion  |     Focuses:  ui
-------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:  needs-testing => close 2nd-opinion
 * component:  Bundled Theme => Themes


Comment:

 Hi and thanks for the report!

 This is intentional, though the values were somewhat arbitrary (see
 ticket:38172#comment:61).

 You could use the `header_video_settings` hook to reduce the minimum width
 and height.

 {{{
 function wptrac_header_video_settings( $settings ) {
         $settings['minWidth']  = 700;
         $settings['minHeight'] = 300;
         return $settings;
 }
 add_filter( 'header_video_settings', 'wptrac_header_video_settings' );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/42353#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list