From: Laury GvR Date: Thu, 18 Jun 2015 18:59:42 +0000 (-0400) Subject: Homepage calendar feed fixed; was replacing event info. X-Git-Tag: v1.0.0~18 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b35cbb8f94331c6ef24e093642025e8a7a9cd475;p=WP-Themes%2FRecycleEmmet.git Homepage calendar feed fixed; was replacing event info. --- diff --git a/footer.php b/footer.php index 7272cf2..740fd05 100755 --- a/footer.php +++ b/footer.php @@ -58,14 +58,16 @@ jQuery(document).ready(function(){ jQuery(".top-bar > section > ul > li > a").attr('href','#'); jQuery(".left-off-canvas-menu > ul.off-canvas-list > div > ul > li > a:first-child").attr('href','#'); - if ($('.ai1ec-event-description').length > 0) { // it exists } - var str = "Curbside Recycling"; - var newhtml = $('.ai1ec-event-description').html().replace(str, '
' + str + ''); - $('.ai1ec-event-description').html(newhtml); - var str = "Drop-off Center"; - var newhtml = $('.ai1ec-event-description').html().replace(str, '' + str + ''); - $('.ai1ec-event-description').html(newhtml); - } + $('.ai1ec-event-description').each(function() { + if ($(this).length > 0) { // it exists } + var str = "Curbside Recycling"; + var newhtml = $(this).html().replace(str, '
' + str + ''); + $(this).html(newhtml); + var str = "Drop-off Center"; + var newhtml = $(this).html().replace(str, '' + str + ''); + $(this).html(newhtml); + } + }); }); - \ No newline at end of file +