document.addEventListener("DOMContentLoaded", function () { var socialContainer = document.getElementById("social-container"); var socialLinks = socialContainer ? socialContainer.querySelectorAll(".elementor-grid-item a") : []; var contactList = document.getElementById("contact-list"); var contactItems = contactList ? contactList.querySelectorAll(".elementor-icon-list-item") : []; var hasLink = false; // Handle social links Array.prototype.forEach.call(socialLinks, function (link) { if (!link.href || link.href.trim() === "") { link.closest(".elementor-grid-item").style.display = "none"; } else { hasLink = true; } }); if (!hasLink && socialContainer) { socialContainer.style.display = "none"; } // Handle contact list items var hasContactItem = false; Array.prototype.forEach.call(contactItems, function (item) { var link = item.querySelector("a"); var text = item.querySelector(".elementor-icon-list-text"); // Hide the item if there's no meaningful content if ( (!link || !link.href || link.href.trim() === "") && (!text || !text.textContent.trim()) ) { item.style.display = "none"; } else { hasContactItem = true; } }); if (!hasContactItem && contactList) { contactList.style.display = "none"; } });
South RVA’s Oldest Living Nativity – Dec. 22-24, 2023 from 6:30 – 8:30 PM + “Live” Bethlehem Dec. 22-23 at Ramsey United Methodist Church, 5900 Hull Street Road, Richmond, VA. Contact: Marsha Hallinan, [email protected] or (804) 276-4628.