{"id":3197,"date":"2016-11-27T13:45:20","date_gmt":"2016-11-27T12:45:20","guid":{"rendered":"https:\/\/en.florianbrinkmann.de\/?p=3197"},"modified":"2020-02-09T10:59:59","modified_gmt":"2020-02-09T09:59:59","slug":"wordpress-weekly-recap-47-video-headers-in-4-7-and-more","status":"publish","type":"post","link":"https:\/\/florianbrinkmann.com\/en\/wordpress-weekly-recap-47-video-headers-in-4-7-and-more-3197\/","title":{"rendered":"WordPress weekly recap #47: Video headers in 4.7 and more"},"content":{"rendered":"\n
WordPress 4.7 will support video headers. Brady Vercher explains in his post how the new feature can be enabled and displayed by themes.<\/p>\n\n\n\n\n\n\n\n
On November 21, the accessibility team set its focus for WordPress 4.8: The settings API, a uniform search, and removing inappropriate content from headline elements in the backend. More information about the meeting is available in the post \u00bbSummary meeting WPa11y team, November 21, 2016\u00ab by Rian Rietveld<\/a>.<\/p>\n\n\n\n The team behind the Preferred Languages<\/em> project wants to develop a solution for language fallbacks in the backend, so that, for example, German formal<\/em> doesn\u2019t fall back to English but German informal<\/em>. The team spent some time to check out the solutions from other systems.<\/p>\n\n\n\n Detailed information about that can be found in Pascal Birchler\u2019s post \u00bbPreferred Languages: Research\u00ab<\/a>.<\/p>\n\n\n\n In his post \u00bbExtending the Custom CSS editor\u00ab, George Stephanis describes how to extend the Custom CSS editor<\/a>, which will be introduced in WordPress 4.7. He introduces the new filters and shows an example, how an existing option for custom CSS can be migrated into the new core field.<\/p>\n\n\n\n The custom header feature will be extended with video support in WordPress 4.7. To enable it, the following code has to be inserted into the theme:<\/p>\n\n\n Thereby, the customizer section Header Image will be renamed to Header Media and give you the possibility to add a YouTube video or one from the media library. To display the image or video, you can use the new function Core<\/h2>\n\n\n\n
Research for \u00bbPreferred Languages\u00ab project<\/h3>\n\n\n\n
Extending the Custom CSS editor<\/h3>\n\n\n\n
Video headers in 4.7<\/h3>\n\n\n\n
add_theme_support( 'custom-header'<\/span>, array<\/span>(\n 'video'<\/span> => true<\/span>,\n) );<\/code><\/div>Code language:<\/span> PHP<\/span> (<\/span>php<\/span>)<\/span><\/small><\/pre>\n\n\n
the_custom_header_markup()<\/code>. A few more information about that can be found in the post \u00bbVideo Headers in 4.7\u00ab by Brady Vercher<\/a>.<\/p>\n\n\n\n
Misc<\/h3>\n\n\n\n
Polyglots<\/h2>\n\n\n\n
Misc<\/h3>\n\n\n\n