Skip to content

Instantly share code, notes, and snippets.

@ShurikAg
Created October 15, 2014 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShurikAg/546ec455e5edc8edd723 to your computer and use it in GitHub Desktop.
Save ShurikAg/546ec455e5edc8edd723 to your computer and use it in GitHub Desktop.
wp-content/themes/oxygen/woocommerce/content-product.php
$post = $post_cloned;
unset($post_cloned);
// if($product_images)
// {
foreach($product_images as $attachment_id):
$image_link = wp_get_attachment_url( $attachment_id );
if( ! $image_link)
continue;
$product_images_urls[] = $image_link;
$product_images_urls_ids[$image_link] = $attachment_id;
endforeach;
if($product_images_urls)
$classes[] = 'has-gallery';
// }
# end: modified by Arlind Nushi
?>
<div <?php post_class( $classes ); ?>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment