Support » Plugin: WooCommerce » how to disable image links in catalog page

  • Hello,

    I’m trying to disable the image links in woocommerce main catalog page, so that it wouldn’t be possible to access the single product’s detail page.
    The site is:

    I’ve tried to paste this code into the functions, but it affects ONLY the one page I don’t wish to be affected, the home.

    /*  code from the page */
    add_filter( 'the_content', 'attachment_image_link_remove_filter' );
    function attachment_image_link_remove_filter( $content ) {
        $content =
                    '{ wp-image-[0-9]*" /></a>}'),
                array('<img','" />'),
        return $content;

    How can this be done?

    Thanks, Priscila.

  • The topic ‘how to disable image links in catalog page’ is closed to new replies.