Support » Plugin: WooCommerce Blocks » Remove product links for blocks.

  • Resolved cameronm191



    I was wondering if there is a way to disable product links for blocks? So basically there would be only an add to cart and picture.

    I am aware of this:

    // Remove links to the product details pages from the product listing page of a WooCommerce store
    remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 );
    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 );

    But it doesn’t seem to work with blocks only shortcodes and I don’t care for how shortcodes display the product description in the title.

    Thank you

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Remove product links for blocks.’ is closed to new replies.