From: Anthony Talarico Date: Fri, 29 Jul 2016 16:38:13 +0000 (-0400) Subject: removing front page events img element after it is wrapped with a div that has a... X-Git-Tag: v1.0.0^2~219 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=7e4a3059462e0b1b379916a1d98fe5f43f2ee08c;p=WP-Themes%2Fpetoskeyarea.git removing front page events img element after it is wrapped with a div that has a background of the same image src --- diff --git a/js/app.js b/js/app.js index fc97b1f..da0f2b9 100644 --- a/js/app.js +++ b/js/app.js @@ -108,7 +108,7 @@ $(document).ready(function () { $(event_feed).find("div").each( function () { var img_src = $(this).find("img").attr('src'); $(this).find('img').wrap("
"); - $(this).find('img').css("height", "0").css("width", "0px"); + $(this).find('img').remove(); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 7c5d319..11cd467 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -99,7 +99,7 @@ $(document).ready(function () { $(event_feed).find("div").each( function () { var img_src = $(this).find("img").attr('src'); $(this).find('img').wrap("
"); - $(this).find('img').css("height", "0").css("width", "0px"); + $(this).find('img').remove(); });