document.addEventListener("DOMContentLoaded", function () { function updatePropertyTitle() { // Select the target h2 element inside the lp-title-group const titleElement = document.querySelector(".lp-title-group h2.lp-h2.title"); if (titleElement) { // Extract the location from the URL path const path = window.location.pathname; const locationMatch = path.match(/\/neighborhoods\/([^/]+)/); if (locationMatch && locationMatch[1]) { // Format the location name (replace hyphens and capitalize words) const location = locationMatch[1] .replace(/-/g, " ") // Replace hyphens with spaces .replace(/\b\w/g, (char) => char.toUpperCase()); // Capitalize each word // Update the content of the h2 element titleElement.textContent = `Property Listings in ${location}`; } } } // Run the function to update the title updatePropertyTitle(); // Use MutationObserver to watch for changes if the content is dynamically loaded const observer = new MutationObserver(updatePropertyTitle); observer.observe(document.body, { childList: true, subtree: true }); });
4151 2nd Avenue, Los Angeles, CA 90008
4 BD | 3 BA | 2,022 Sq.Ft.
3659 W 62nd Street, Los Angeles, CA 90043
3 BD | 3 BA | 1,601 Sq.Ft.
7248 Ashwood Court, Fontana, CA 92336
4 BD | 3 BA | 3,039 Sq.Ft.
3659 W 62nd Street, Los Angeles, CA 90043
3 BD | 2 BA | 1,601 Sq.Ft.
421 N Boylston Street, Los Angeles, CA 90012
2 BD | 2 BA | 1,440 Sq.Ft.
11279 Evergreen Loop, Temescal Valley, CA 92883
5 BD | 5 BA | 3,268 Sq.Ft.
921 Feather Avenue, La Puente, CA 91746
4 BD | 2 BA | 1,335 Sq.Ft.
621 N Enid Avenue, Covina, CA 91722
3 BD | 2 BA | 1,150 Sq.Ft.
Find Your Dream Home
Whether you're looking to buy or sell luxury real estate in Riverside, our team has the experience and expertise to make it happen. Contact us to schedule a consultation and take the first step toward achieving your property goals.