Skip to content

Commit

Permalink
Merge pull request #1689 from INN/1688-theme-support-responsive-embeds
Browse files Browse the repository at this point in the history
Add theme support for responsive-embeds
  • Loading branch information
benlk authored Apr 24, 2019
2 parents 71aa739 + aa2c6fc commit c530c6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Particular thanks go to outside contributors [@seanchayes](https://github.com/se

### Feature updates

- Adds support for responsive embedded content, which is most noticeable with video content set to full width. [Pull request #1689](https://github.com/INN/largo/pull/1689) for [issue #1688](https://github.com/INN/largo/issues/1688).
- Matches the default styles for Gutenberg's Pull Quote block with Largo's styles for `<blockquote>`. Adds styles for `<cite>` elements. [Pull Request #1687](https://github.com/INN/largo/pull/1687) for [issue #1682](https://github.com/INN/largo/issues/1682).
- Ensures that the CSS classes used by Largo's Classic Editor plugin "Module Wrapper" can be used on pull quotes. [Pull Request #1687](https://github.com/INN/largo/pull/1687) for [issue #1682](https://github.com/INN/largo/issues/1682). If you'd like to make use of these classes by adding them to a Pull Quote block in the "Additional CSS Class" control of the "Advanced" section of the pull quote's block settings, the list of classes is as follows:
- `type-pull-quote`: appears larger in the story, with a slightly fancier presentation
Expand Down
4 changes: 4 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,10 @@ function largo_setup() {
// Gutenberg alignment classes
add_theme_support( 'align-wide' );

// Gutenberg-derived responsive embedding
// https://github.com/INN/largo/issues/1688
add_theme_support( 'responsive-embeds' );

// Gutenberg support for editor styles; @link https://github.com/WordPress/gutenberg/pull/9008
add_theme_support( 'editor-styles' );
add_editor_style('/css/gutenberg' . $suffix . '.css');
Expand Down

0 comments on commit c530c6f

Please sign in to comment.