• Resolved php-supadev

    (@lbdeveloper)


    Hello,

    i am having trouble doing a very small and basic customization to a WooCommerce theme. That is, just adding some code to the product image HTML, which i think is just a WC template to be replaced/overridden in your theme.

    This is what i have tried

    – i have duplicated eCommerce Plus, which is one of the main free themes for Woocommerce

    – i have changed the theme name in the style.css file

    – i have created the woocommerce/templates/single-product subfolder inside my child theme folder

    – i have created a file called product-image.php inside that subfolder. It contains only <?php die(); , just to make sure it gets executed

    But it had no effect. The die() was not executed.

    What am i missing?

    Thank you!

    • This topic was modified 3 years, 3 months ago by php-supadev.
  • The topic ‘[Theme development] Overriding WooCommerce product image HTML’ is closed to new replies.