• I’ve a very basic function which adds a simple text before product gallery thumbnails. It was working fine before the update but after I updated WooCommerce to the latest version. Now text is added in the dom but visibility is gone also looks like it’s placed in a wrong position. Here is the function:

    function skyverge_add_below_featured_image() {
        echo '<h4 style="text-align:center;margin-top:10px;">Click to Enlarge</h4>';
    }
    add_action( 'woocommerce_product_thumbnails' , 'skyverge_add_below_featured_image', 20 );

    I tried switching WooCommerce older version and it works fine on the old one. But not working with the latest version.

Viewing 1 replies (of 1 total)
  • try this instead.

    function skyverge_add_below_featured_image() {
    echo ‘<h4 style=”text-align:center;margin-top:10px;”>Click to Enlarge</h4>’;
    }
    add_action( ‘woocommerce_before_single_product_summary’ , ‘skyverge_add_below_featured_image’, 21 );

    • This reply was modified 7 years, 1 month ago by Samui Island.
Viewing 1 replies (of 1 total)
  • The topic ‘Action hook not working after update ‘woocommerce_product_thumbnails’’ is closed to new replies.