File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -576,12 +576,19 @@ function osi_register_ai_menu() {
576576}
577577add_action ( 'after_setup_theme ' , 'osi_register_ai_menu ' );
578578
579- function mytheme_full_width_editor ( $ editor_settings ) {
579+ /**
580+ * Enqueue the full-width editor styles for the AI template.
581+ *
582+ * @param array $editor_settings The editor settings.
583+ *
584+ * @return array
585+ */
586+ function osi_full_width_editor ( array $ editor_settings ): array {
580587 if ( get_page_template_slug () === 'templates/ai-wide.php ' ) {
581588 $ editor_settings ['styles ' ][] = array (
582589 'css ' => '.wp-block { max-width: 1140px !important; } ' ,
583590 );
584591 }
585592 return $ editor_settings ;
586593}
587- add_filter ( 'block_editor_settings_all ' , 'mytheme_full_width_editor ' );
594+ add_filter ( 'block_editor_settings_all ' , 'osi_full_width_editor ' );
Original file line number Diff line number Diff line change 1212 <main class="content--body <?php echo esc_attr ( osi_main_class () ); ?> " role="main">
1313 <section class="content--page" id="content-page">
1414 <?php
15- // get_template_part( 'template-parts/breadcrumbs' );
16-
1715 while ( have_posts () ) :
1816 the_post ();
1917 get_template_part ( 'template-parts/content ' , 'page-no-header ' );
You can’t perform that action at this time.
0 commit comments