Support » Plugin: WooCommerce » Remove clickable link for mobile version only

  • Resolved NiallASD

    (@niallasd)


    On my product pages I would like to remove the ability to click on an image open an enlarged version.

    I know by replacing the following code in product-image.php:

    echo apply_filters(
    	'woocommerce_single_product_image_html',
    		sprintf(
    			esc_url( $props['url'] ),
    			esc_attr( $props['caption'] ),
    			$gallery,
    			$image
    		),
    		$post->ID
    );

    with

    echo $image;

    I can remove it, but is there a way I can do so for the mobile version (I use Jetpack) only without effecting the desktop version

    A page from my site

    https://wordpress.org/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove clickable link for mobile version only’ is closed to new replies.