toggle( 'core/edit-site', 'welcomeGuidePage' ) }
+ pages={ [
+ {
+ image: (
+
+ ),
+ content: (
+ <>
+
+ { heading }
+
+
+ { __(
+ 'We’ve recently introduced the ability to edit pages within the site editor. You can switch to editing your template using the settings sidebar.'
+ ) }
+
+ >
+ ),
+ },
+ ] }
+ />
+ );
+}
diff --git a/packages/edit-site/src/components/welcome-guide/style.scss b/packages/edit-site/src/components/welcome-guide/style.scss
index 78cc70d0b426c..e9e8b46a8aff2 100644
--- a/packages/edit-site/src/components/welcome-guide/style.scss
+++ b/packages/edit-site/src/components/welcome-guide/style.scss
@@ -1,8 +1,22 @@
.edit-site-welcome-guide {
width: 312px;
- &__image {
+ &.guide-editor .edit-site-welcome-guide__image
+ &.guide-styles .edit-site-welcome-guide__image {
background: #00a0d2;
+ }
+
+ &.guide-page .edit-site-welcome-guide__video {
+ border-right: #3858e9 $grid-unit-20 solid;
+ border-top: #3858e9 $grid-unit-20 solid;
+ }
+
+ &.guide-template .edit-site-welcome-guide__video {
+ border-left: #3858e9 $grid-unit-20 solid;
+ border-top: #3858e9 $grid-unit-20 solid;
+ }
+
+ &__image {
margin: 0 0 $grid-unit-20;
> img {
display: block;
diff --git a/packages/edit-site/src/components/welcome-guide/styles.js b/packages/edit-site/src/components/welcome-guide/styles.js
index d60d41d7a1a4f..e6ec75ed7243f 100644
--- a/packages/edit-site/src/components/welcome-guide/styles.js
+++ b/packages/edit-site/src/components/welcome-guide/styles.js
@@ -38,7 +38,7 @@ export default function WelcomeGuideStyles() {
return (
toggle( 'core/edit-site', 'welcomeGuideStyles' ) }
diff --git a/packages/edit-site/src/components/welcome-guide/template.js b/packages/edit-site/src/components/welcome-guide/template.js
new file mode 100644
index 0000000000000..cf0e723ab4609
--- /dev/null
+++ b/packages/edit-site/src/components/welcome-guide/template.js
@@ -0,0 +1,82 @@
+/**
+ * WordPress dependencies
+ */
+import { useDispatch, useSelect } from '@wordpress/data';
+import { Guide } from '@wordpress/components';
+import { __ } from '@wordpress/i18n';
+import { store as preferencesStore } from '@wordpress/preferences';
+
+/**
+ * Internal dependencies
+ */
+import { store as editSiteStore } from '../../store';
+
+export default function WelcomeGuideTemplate() {
+ const { toggle } = useDispatch( preferencesStore );
+
+ const isVisible = useSelect( ( select ) => {
+ const isTemplateActive = !! select( preferencesStore ).get(
+ 'core/edit-site',
+ 'welcomeGuideTemplate'
+ );
+ const isEditorActive = !! select( preferencesStore ).get(
+ 'core/edit-site',
+ 'welcomeGuide'
+ );
+ const { isPage, hasPageContentFocus } = select( editSiteStore );
+ return (
+ isTemplateActive &&
+ ! isEditorActive &&
+ isPage() &&
+ ! hasPageContentFocus()
+ );
+ }, [] );
+
+ if ( ! isVisible ) {
+ return null;
+ }
+
+ const heading = __( 'Editing your template' );
+
+ return (
+
+ toggle( 'core/edit-site', 'welcomeGuideTemplate' )
+ }
+ pages={ [
+ {
+ image: (
+
+ ),
+ content: (
+ <>
+
+ { heading }
+
+
+ { __(
+ 'You’re now editing your page’s template. To switch back to editing your page you can click the back button in the toolbar.'
+ ) }
+
+ >
+ ),
+ },
+ ] }
+ />
+ );
+}
diff --git a/packages/edit-site/src/index.js b/packages/edit-site/src/index.js
index a4698c02aff90..d013ded8b416e 100644
--- a/packages/edit-site/src/index.js
+++ b/packages/edit-site/src/index.js
@@ -67,6 +67,8 @@ export function initializeEditor( id, settings ) {
keepCaretInsideBlock: false,
welcomeGuide: true,
welcomeGuideStyles: true,
+ welcomeGuidePage: true,
+ welcomeGuideTemplate: true,
showListViewByDefault: false,
showBlockBreadcrumbs: true,
} );