Instead of removing the href of the product links on the shop page, they're now repla...
authorLaury GvR <laury@gaslightmedia.com>
Tue, 9 May 2017 15:38:07 +0000 (11:38 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 9 May 2017 15:38:07 +0000 (11:38 -0400)
js/app.js
js/custom/pageSetup.js

index 63c0707..ae5e99d 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -21,7 +21,7 @@ $(document).ready(function () {
     $(".woocommerce-LoopProduct-link").each(function() {
         // Removing all the anchors from the products so that you won't
         //  navigate away when clicking in one, allowing fancybox to display
-        $(this).attr("href", "");
+        $(this).attr("href", $(this).children("img").attr("src"));
     });
 
     $(".woocommerce-LoopProduct-link").fancybox({
index c21df91..8d07586 100644 (file)
@@ -12,7 +12,7 @@ $(document).ready(function () {
     $(".woocommerce-LoopProduct-link").each(function() {
         // Removing all the anchors from the products so that you won't
         //  navigate away when clicking in one, allowing fancybox to display
-        $(this).attr("href", "");
+        $(this).attr("href", $(this).children("img").attr("src"));
     });
 
     $(".woocommerce-LoopProduct-link").fancybox({