M
M
Mikhail Lebedev2021-11-25 22:38:38
WooCommerce
Mikhail Lebedev, 2021-11-25 22:38:38

How to disable the product slider in the product card on desktops?

I can't figure out how to turn off the slider function in WooCommerce?
That is, so that all all the pictures are simply displayed in the product card without this paging or additional clicking

// =============================================================================
add_action( 'after_setup_theme', 'remove_woo_three_support', 11 ); 
function remove_woo_three_support() {
  remove_theme_support( 'wc-product-gallery-zoom' );
  remove_theme_support( 'wc-product-gallery-slider' );
  remove_theme_support( 'wc-product-gallery-lightbox' );
}
// =============================================================================


the melon hook disables the slider, but all the pictures that are displayed (except the first one) are small in size,
but you just need to display all the pictures of the same size (easy to view without clicking on them) and when you click in the lightbox already in full size

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question