How to remove “quick view” button in WooCommerce

  1. Home
  2. Knowledge Base
  3. WooCommerce
  4. How to remove “quick view” button in WooCommerce

How to remove “quick view” button in WooCommerce

  1. Navigate to File manager in your hosting cPanel.
  2. Open “wp-content/plugins/cherry-woocommerce-package/includes” folder.
  3. Find cherry-woocommerce-package.php file and click Edit icon to edit it.
  4. Locate this code and remove it:
    function append_button() {
                global $post, $product;
                $btn_tex = apply_filters( 'cherry_wc_quick_view_text', __( 'Quick view', 'cherry-woocommerce-package' ) );
                echo '<span class="btn cherry-quick-view" data-product="' . $product->id . '">' . $btn_tex . '</span>';
                wp_enqueue_script( 'prettyPhoto' );
                }
                $btn_tex = apply_filters( 'cherry_wc_quick_view_text', __( 'Quick view', 'cherry-woocommerce-package' ) );
                echo '<span class="btn cherry-quick-view" data-product="' . $product->id . '">' . $btn_tex . '</span>';
                wp_enqueue_script( 'prettyPhoto' );
                }
  5. Click “Save” button to save changes.
  6. Refresh your website to see changes. Quick view button is successfully removed.
Facebook Comments

Was this article helpful?

Related Articles