Use full width template for homepage in stores using Storefront (https://github.com/woocommerce/woocommerce-admin/pull/3846)
This commit is contained in:
parent
c2a39265d1
commit
8a83e62905
|
@ -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' ),
|
||||
|
|
Loading…
Reference in New Issue