mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
Bundled Themes: Add theme support for responsive embeds
Add `add_theme_support( 'responsive-embeds' );` to all of the responsive default themes as part of their Gutenberg support. This makes sure any embeds coming from the new block-based editor maintain their aspect ratios at different screen sizes. Fixes #45274. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43868 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
abfbb344f1
commit
c99ccf859e
@ -88,6 +88,9 @@ function twentyeleven_setup() {
|
||||
// Load default block styles.
|
||||
add_theme_support( 'wp-block-styles' );
|
||||
|
||||
// Add support for responsive embeds.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
// Add support for custom color scheme.
|
||||
add_theme_support( 'editor-color-palette', array(
|
||||
array(
|
||||
|
@ -148,6 +148,9 @@ function twentyfifteen_setup() {
|
||||
// Load default block styles.
|
||||
add_theme_support( 'wp-block-styles' );
|
||||
|
||||
// Add support for responsive embeds.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
// Add support for custom color scheme.
|
||||
add_theme_support( 'editor-color-palette', array(
|
||||
array(
|
||||
|
@ -76,6 +76,9 @@ function twentyfourteen_setup() {
|
||||
// Load default block styles.
|
||||
add_theme_support( 'wp-block-styles' );
|
||||
|
||||
// Add support for responsive embeds.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
// Add support for custom color scheme.
|
||||
add_theme_support( 'editor-color-palette', array(
|
||||
array(
|
||||
|
@ -112,6 +112,9 @@ function twentyseventeen_setup() {
|
||||
// Load default block styles.
|
||||
add_theme_support( 'wp-block-styles' );
|
||||
|
||||
// Add support for responsive embeds.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
// Define and register starter content to showcase the theme on new sites.
|
||||
$starter_content = array(
|
||||
'widgets' => array(
|
||||
|
@ -130,6 +130,9 @@ function twentysixteen_setup() {
|
||||
// Load default block styles.
|
||||
add_theme_support( 'wp-block-styles' );
|
||||
|
||||
// Add support for responsive embeds.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
// Add support for custom color scheme.
|
||||
add_theme_support( 'editor-color-palette', array(
|
||||
array(
|
||||
|
@ -83,6 +83,9 @@ function twentythirteen_setup() {
|
||||
// Add support for full and wide align images.
|
||||
add_theme_support( 'align-wide' );
|
||||
|
||||
// Add support for responsive embeds.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
// Add support for custom color scheme.
|
||||
add_theme_support( 'editor-color-palette', array(
|
||||
array(
|
||||
|
@ -60,6 +60,9 @@ function twentytwelve_setup() {
|
||||
// Load default block styles.
|
||||
add_theme_support( 'wp-block-styles' );
|
||||
|
||||
// Add support for responsive embeds.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
// Add support for custom color scheme.
|
||||
add_theme_support( 'editor-color-palette', array(
|
||||
array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user