Share

Openlands Programs

Protecting and connecting to nature begins where we are. Through local, meaningful, community-oriented programs, we can all do our part to create access to nature for all.
Share
Person holding a small oak sapling with green leaves against a blurred background.

Rooted in our deep understanding of the Urban Forest, Openlands equips communities with the resources needed to be able to effectively and efficiently protect trees in neighborhoods and throughout the region.

Openlands’ educational programs create opportunities for students, teachers, and schools to deepen their connection to themselves, their community, and the natural world.

Hummingbird feeds in mid-air on nectar from bright red flowers.

As Chicago’s regional land trust, Openlands connects and energizes the region through strategic collaboration and local partnerships that protect land, water, and wildlife.

Learn More About Our Projects

Openlands Projects

Our projects strive to give back to our region’s open spaces and create new ones so that we can continue to enjoy their solace and health benefits for generations to come.

Volunteer with Openlands

Openlands makes protecting nature accessible and approachable for all.
Scroll to Top
/** * Openlands Mobile Drawer Menu Fixes * * HOW TO ADD THIS TO WORDPRESS: * Option A (Elementor Pro): Site Settings → Custom Code → Add New Code → paste this → set location to "Body End" * Option B (plugin): Install "WPCode Lite" → Code Snippets → Add Snippet → JavaScript → set "Insert Before " * * REMOVE any old "click-only-menu" script that was previously attached. */ (function () { function initMobileMenuFixes() { // FIX 1: Clicking parent menu label (e.g. "Accountability & Impact") toggles // the submenu instead of closing the drawer. // Uses document capture so we intercept before Astra's close-on-click handler. document.addEventListener('click', function (e) { var link = e.target.closest('#ast-mobile-popup-wrapper .menu-item-has-children > a.menu-link'); if (!link) return; if (link.getAttribute('href') !== '#') return; // only intercept non-navigation parents e.preventDefault(); e.stopImmediatePropagation(); // prevent any other listeners on same phase/element var li = link.closest('.menu-item-has-children'); var toggle = li ? li.querySelector(':scope > .ast-menu-toggle') : null; if (toggle) { // Works even when toggle is display:none — dispatchEvent bypasses CSS visibility toggle.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true })); } }, true); // capture phase on document — fires before Astra's bubble-phase handlers // FIX 2: Wrap the drawer logo (currently an unlinked
) in a home link. var popup = document.querySelector('#ast-mobile-popup-wrapper'); if (!popup) return; var logoImg = popup.querySelector('figure img'); if (logoImg) { var figure = logoImg.closest('figure'); if (figure && figure.parentElement && figure.parentElement.tagName !== 'A') { var homeLink = document.createElement('a'); homeLink.href = window.location.origin + '/'; homeLink.setAttribute('aria-label', 'Go to Openlands homepage'); homeLink.style.display = 'block'; figure.parentNode.insertBefore(homeLink, figure); homeLink.appendChild(figure); } } } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', initMobileMenuFixes); } else { initMobileMenuFixes(); } })();