Skip to content

Commit

Permalink
Remove widget on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
svenauhagen committed Jul 5, 2016
1 parent b9e2f03 commit 0919982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cart-tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function woocommerce_cart_tab() {
wcct_cart_button();

// Display the widget if specified.
if ( 'yes' == $widget ) {
if ( 'yes' == $widget && !wp_is_mobile() ) {
// Check for WooCommerce 2.0 and display the cart widget.
if ( version_compare( WOOCOMMERCE_VERSION, '2.0.0' ) >= 0 ) {
the_widget( 'WC_Widget_Cart', 'title=' );
Expand Down

0 comments on commit 0919982

Please sign in to comment.