Okay
  Public Ticket #880797
hide product images
Closed

Comments

  •  2
    Josh started the conversation

    Hi Laborator,

    Is it possible to remove the product images and thumbnails in both the Shop page and the single product pages using custom CSS or code?

    I want to list my products as a simple list without any images at all.

    Thanks

  • [deleted] replied

    Hi Josh,

    Yes that is possible, you just have to add this Custom CSS:

    .col-lg-6.col-md-6.col-sm-6.shop-item {
    display: none;
    }

    .col-lg-6.col-md-6.col-sm-6.shop-item + div {
    width: 100%
    }

    And this code in functions.php:

    remove_action( 'woocommerce_before_shop_loop_item', 'aurum_shop_loop_item_thumbnail' );
    remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_sale_flash', 10 );
    remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );

    In the end of file. This should work for you.

    Note that when you update the theme you have to re-apply the php code so keep a backup of the code above.