Support » Plugin: WooCommerce » Unhooked Single Prod Page Images (remove_action)

  • Resolved smelsworst


    Hopefully someone can help on this… was trying to come remove reviews and followed the advice given by Sean Barton here: and therein, added the following to my theme’s functions.php file.

    remove_action( ‘woocommerce_product_tabs’, ‘woocommerce_product_reviews_tab’, 30);
    remove_action( ‘woocommerce_product_tab_panels’, ‘woocommerce_product_reviews_panel’, 30);

    The outcome was that the images from my single product pages are gone (as well as the reviews).. which doesn’t seem right. now that I’ve removed the lines from my functions.php file, the changes don’t reverse (I guess I need to do an add_action?).

    When I look into the page source, I see that div.images and no longer load on the single product pages, only the div.summary.

    thanks in advance, interwebs!


Viewing 2 replies - 1 through 2 (of 2 total)
  • note.. digging in and re-adding the relevant add_actions from woocommerce/includes/wc-template-hooks.php via my theme’s functions.php file didn’t help.

    add_action( ‘woocommerce_before_single_product_summary’, ‘woocommerce_show_product_images’, 20 );
    add_action( ‘woocommerce_product_thumbnails’, ‘woocommerce_show_product_thumbnails’, 20 );
    add_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 10 );

    solved myself… needed to do the add_actions but up the priority (in my case I just upped it from 20 or 10 to 40 and volia, all sorted.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unhooked Single Prod Page Images (remove_action)’ is closed to new replies.