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, '<br><b>' + str + '</b>');
- $('.ai1ec-event-description').html(newhtml);
- var str = "Drop-off Center";
- var newhtml = $('.ai1ec-event-description').html().replace(str, '<b>' + str + '</b>');
- $('.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, '<br><b>' + str + '</b>');
+ $(this).html(newhtml);
+ var str = "Drop-off Center";
+ var newhtml = $(this).html().replace(str, '<b>' + str + '</b>');
+ $(this).html(newhtml);
+ }
+ });
});
</script>
-</html>
\ No newline at end of file
+</html>