导航菜单
首页 >  How To Link WordPress Featured Images To External URLs  > Use External URL on WooCommerce Product Images

Use External URL on WooCommerce Product Images

We were building a WooCommerce site for our customer, and all the products is from the other affiliate site. There are over 10,000 products. While importing all these products is simple (from a CSV!), we don’t want to put over 40,000 product images on our sites (average around 4 images per product). That takes lots of space, and that takes lots of time to upload! So we decided to just reference all images from the original site. Here is how we do it.

The Code

The code contains a Uyond_External_Image class and a product-thumbnails.php template. You can just simply copy and paste this to your theme to make it work.

相关推荐: