Skip to content

Commit

Permalink
Add theme support for responsive embeds.
Browse files Browse the repository at this point in the history
Ensures that alignfull & alignwide embeds are scaled to take up the space they're given. (and that they are responsive πŸ™‚)
  • Loading branch information
kjellr committed Nov 6, 2018
1 parent 2fe41e9 commit dd8af8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ function gutenbergtheme_setup() {
'color' => '#444',
),
) );

// Add support for responsive embeds.
add_theme_support( 'responsive-embeds' );
}
endif;
add_action( 'after_setup_theme', 'gutenbergtheme_setup' );
Expand Down

0 comments on commit dd8af8c

Please sign in to comment.