From: Anthony Talarico Date: Tue, 28 Jun 2016 17:06:57 +0000 (-0400) Subject: testing removal of jquery category background image replacement X-Git-Tag: v1.0.0^2~117 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=f3e120b2bd1d1d0c50069b780aeca4a2ad3d8d50;p=WP-Themes%2Ffrancejourneys.git testing removal of jquery category background image replacement --- diff --git a/js/app.js b/js/app.js index 887f255..8180b88 100644 --- a/js/app.js +++ b/js/app.js @@ -85,12 +85,13 @@ $(document).ready(function () { } // changing the img tag for category view from a source to having a background to make the sizes uniform - $(".attachment-shop_catalog").each( function () { - var img_src = $(this).attr("src"); - console.debug(img_src); - $(this).css("height", 175).css("width", 'auto'); - $(this).css("background", 'url(' + img_src + ') no-repeat center center').css("background-size", "cover"); - $(this).removeAttr("src").removeAttr("srcset"); - }); +// $(".attachment-shop_catalog").each( function () { +// var img_src = $(this).attr("src"); +// console.debug(img_src); +// $(this).css("height", 175).css("width", 'auto'); +// $(this).css("background", 'url(' + img_src + ') no-repeat center center').css("background-size", "cover"); +// $(this).removeAttr("src"); +//// $(this).attr("src", "").attr("srcset", "" ); +// }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 505007d..f22ac59 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -76,12 +76,13 @@ $(document).ready(function () { } // changing the img tag for category view from a source to having a background to make the sizes uniform - $(".attachment-shop_catalog").each( function () { - var img_src = $(this).attr("src"); - console.debug(img_src); - $(this).css("height", 175).css("width", 'auto'); - $(this).css("background", 'url(' + img_src + ') no-repeat center center').css("background-size", "cover"); - $(this).removeAttr("src").removeAttr("srcset"); - }); +// $(".attachment-shop_catalog").each( function () { +// var img_src = $(this).attr("src"); +// console.debug(img_src); +// $(this).css("height", 175).css("width", 'auto'); +// $(this).css("background", 'url(' + img_src + ') no-repeat center center').css("background-size", "cover"); +// $(this).removeAttr("src"); +//// $(this).attr("src", "").attr("srcset", "" ); +// }); });