Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions includes/wpzoom-wc-spi-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ public static function get_instance() {
*/
public function load_frontend_scripts() {

if ( wp_is_mobile() ) {
return;
}

wp_enqueue_style(
'wpzoom-wc-spi-style',
WPZOOM_WC_SPI_URL . 'assets/css/secondary-product-image-for-woocommerce.css',
Expand Down Expand Up @@ -102,10 +98,6 @@ public function add_image_wrapper( $image_html ) {
*/
public function add_secondary_product_thumbnail( $size = 'woocommerce_thumbnail', $deprecated1 = 0, $deprecated2 = 0 ) {

if ( wp_is_mobile() ) {
return '';
}

//Check if the theme is a block theme
$is_theme_block = wp_is_block_theme();
if( $is_theme_block ) {
Expand Down Expand Up @@ -187,4 +179,4 @@ public function set_product_post_class( $classes, $class, $post_id ) {

}
new WPZOOM_WC_Secondary_Image_Frontend;
}
}