diff --git a/includes/Patterns.php b/includes/Patterns.php index 694ffaa..823bbda 100644 --- a/includes/Patterns.php +++ b/includes/Patterns.php @@ -171,6 +171,11 @@ public static function get_fallbacks() { 'about-4' => 'yith-wonder/company-page', 'contact-4' => 'yith-wonder/contact-us', 'testimonials-template-2' => 'yith-wonder/testimonials-page', + 'header-1' => 'yith-wonder/site-header-left-logo-navigation-inline', + 'header-3' => 'yith-wonder/site-header-centered', + 'header-8' => 'yith-wonder/site-header-left-logo-navigation-below', + 'header-10' => 'yith-wonder/site-header-splitted-menu', + 'footer-15' => 'yith-wonder/site-footer', ), ); } @@ -414,7 +419,8 @@ public static function get_theme_step_patterns_from_step( $step, $squash = false if ( 'wonder-blocks' === $header_menu_data['type'] ) { $pattern_slug_data['wonder_blocks'] = $slug; } else { - $pattern_slug = $slug; + // to update the chosen header from the fallback in the homelayouts page(wp-setup/step/design/homepage-menu) + $pattern_slug_data['wonder_blocks'] = array_search($active_theme . '/' . $slug, self::get_fallbacks()['wonder-blocks']); } } $pattern_slugs[ $pattern_slug ] = $pattern_slug_data;