Skip to content

Commit

Permalink
Dont remove checkout sidebars
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiulodro committed Oct 15, 2019
1 parent fe88db5 commit 8bf44a7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions inc/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,6 @@ function newspack_woo_account_registration_heading() {
}
add_action( 'woocommerce_before_checkout_registration_form', 'newspack_woo_account_registration_heading' );

/**
* Remove sidebar on Checkout page to reduce distractions.
*/
function newspack_woo_remove_checkout_sidebar( $is_active ) {
if ( is_page( wc_get_page_id( 'checkout' ) ) ) {
return false;
}

return $is_active;
}
add_filter( 'is_active_sidebar', 'newspack_woo_remove_checkout_sidebar' );

/**
* Remove default WooCommerce wrapper.
*/
Expand Down

0 comments on commit 8bf44a7

Please sign in to comment.