[Support request] WooCommerce

Home Forums Support WooCommerce

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #451352

    I have been able to hide the Product Images in the Category Pages and the Product Page

    // Remove image from product pages
    remove_action( ‘woocommerce_before_single_product_summary’, ‘woocommerce_show_product_images’, 20 );
    .woocommerce-page #content div.product div.summary { width:100%; }

    // Remove product images from the shop loop
    remove_action( ‘woocommerce_before_shop_loop_item_title’, ‘woocommerce_template_loop_product_thumbnail’, 10 );

    However I now need to activate the Product Images for a “”specific”” WooCommerce Category – Images should appear in both the Product Archive Pages and the Single Product Pages? How do I do this? With GP Hooks?

    GeneratePress 2.0.1
    GP Premium 1.5.6
    Customer Support

    Hi there,

    You would have to use some WordPress conditional tags like this to exclude the code on those specific pages: https://docs.generatepress.com/article/using-hooks-conditional-tags/

    WooCommerce support should be able to point you to the right direction as those are their filters.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.