Skip to content

Commit

Permalink
Add support for responsive embedded content (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
albig authored Jan 23, 2025
1 parent de1f3b9 commit 583610c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion functions/s.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ function sunflower_setup() {
add_theme_support( 'customize-selective-refresh-widgets' );

add_theme_support( 'align-wide' );

/**
* Add Responsive embedded content
* https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#responsive-embedded-content
*/
add_theme_support( 'responsive-embeds' );

add_theme_support( 'editor-styles' );
add_editor_style( '/assets/css/editor-style.css' );
add_editor_style( '/assets/css/admin-fontawesome.css' );
Expand All @@ -92,7 +99,7 @@ function sunflower_setup() {
* @global int $content_width
*/
function sunflower_content_width() {
$GLOBALS['content_width'] = apply_filters( 'sunflower_content_width', 640 );
$GLOBALS['content_width'] = apply_filters( 'sunflower_content_width', 876 );
}

add_action( 'after_setup_theme', 'sunflower_content_width', 0 );
Expand Down

0 comments on commit 583610c

Please sign in to comment.