diff --git a/src/OnboardingSPA/components/Sidebar/components/SitegenEditorPatterns/Sidebar.js b/src/OnboardingSPA/components/Sidebar/components/SitegenEditorPatterns/Sidebar.js index 309514205..9c96c9c08 100644 --- a/src/OnboardingSPA/components/Sidebar/components/SitegenEditorPatterns/Sidebar.js +++ b/src/OnboardingSPA/components/Sidebar/components/SitegenEditorPatterns/Sidebar.js @@ -323,6 +323,17 @@ const SitegenEditorPatternsSidebar = () => { ); newPreviewSettings.settings.color.palette = data.color.palette; + let blockGrammar = ''; + [ + 'header', + 'content', + 'footer', + ].forEach( ( part ) => { + if ( part in data ) { + blockGrammar += + data[ part ]; + } + } ); return (
{ : 'custom__highlighted' } blockGrammer={ - data.content + blockGrammar } viewportWidth={ 1300