Use full width template for homepage in stores using Storefront (https://github.com/woocommerce/woocommerce-admin/pull/3846)

This commit is contained in:
Joshua T Flowers 2020-03-10 10:14:18 +01:00 committed by GitHub
parent c2a39265d1
commit 8a83e62905
1 changed files with 5 additions and 0 deletions

View File

@ -427,6 +427,11 @@ class OnboardingTasks extends \WC_REST_Data_Controller {
update_option( 'page_on_front', $post_id );
update_option( 'woocommerce_onboarding_homepage_post_id', $post_id );
// Use the full width template on stores using Storefront.
if ( 'storefront' === get_stylesheet() ) {
update_post_meta( $post_id, '_wp_page_template', 'template-fullwidth.php' );
}
return array(
'status' => 'success',
'message' => __( 'Homepage created.', 'woocommerce-admin' ),