Skip to content

Instantly share code, notes, and snippets.

@bradpotter
Created December 20, 2018 21:34
Show Gist options
  • Save bradpotter/382f881d11331d236eaf94e5e6b36f7c to your computer and use it in GitHub Desktop.
Save bradpotter/382f881d11331d236eaf94e5e6b36f7c to your computer and use it in GitHub Desktop.
Modify onboarding.php to include additional pages
return array(
'dependencies' => array(
'plugins' => array(
array(
'name' => __( 'Atomic Blocks', 'genesis-sample' ),
'slug' => 'atomic-blocks/atomicblocks.php',
),
),
),
'content' => array(
'homepage' => array(
'post_title' => 'Homepage',
'post_name' => 'homepage-gutenberg',
'post_content' => require dirname( __FILE__ ) . '/import/content/homepage.php',
'post_type' => 'page',
'post_status' => 'publish',
'page_template' => 'template-blocks.php',
'comment_status' => 'closed',
'ping_status' => 'closed',
),
'aboutpage' => array(
'post_title' => 'About',
'post_name' => 'about',
'post_content' => require dirname( __FILE__ ) . '/import/content/aboutpage.php',
'post_type' => 'page',
'post_status' => 'publish',
'page_template' => 'template-blocks-about.php',
'comment_status' => 'closed',
'ping_status' => 'closed',
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment