document.addEventListener("DOMContentLoaded", function() { function getMetaContentByName(name) { return document.querySelector('meta[name="' + name + '"]')?.getAttribute("content") || ""; } function createSchemaMarkup() { if (window.location.pathname.startsWith("/blog/")) { try { const pageUrl = window.location.href; let title = document.querySelector('h1')?.innerText || document.title; if (title.includes("|")) { title = title.split("|")[0].trim(); } const description = getMetaContentByName("description"); let selectedImage = ""; let maxSize = 0; const images = document.querySelectorAll('img'); images.forEach(img => { const size = img.clientWidth * img.clientHeight; const src = img.getAttribute('src').toLowerCase(); if ((src.includes('header') || src.includes('cover')) && size > maxSize && !src.includes('logo')) { maxSize = size; selectedImage = src; } }); if (!selectedImage) { images.forEach(img => { const size = img.clientWidth * img.clientHeight; const src = img.getAttribute('src').toLowerCase(); if (size > maxSize && !src.includes('logo')) { maxSize = size; selectedImage = src; } }); } if (!selectedImage) { images.forEach(img => { const size = img.clientWidth * img.clientHeight; if (size > maxSize) { maxSize = size; selectedImage = img.getAttribute('src'); } }); } if (!selectedImage) { images.forEach(img => { const src = img.getAttribute('src').toLowerCase(); if (src.includes('auto')) { selectedImage = src; } }); } if (!selectedImage) { console.error("No suitable image found on the page."); } const sections = document.querySelectorAll('section'); let contentBlock = null; let maxContentLength = 0; sections.forEach(section => { const contentLength = section.innerText.length; if (contentLength > maxContentLength) { maxContentLength = contentLength; contentBlock = section; } }); let articleBody = contentBlock ? contentBlock.innerHTML : ""; const schema = { "@context": "https://schema.org", "@type": "BlogPosting", "mainEntityOfPage": { "@type": "WebPage", "@id": pageUrl }, "headline": title, "description": description, "image": selectedImage || "", "articleBody": articleBody, "author": { "@type": "RealEstateAgent", "name": "Taranto Team", "url": "https://tarantoteam.com/team", "image": "https://res.cloudinary.com/luxuryp/images/f_auto,q_auto/vavlvjhbirzyzu72kghi/tarantoteamimage", "telephone": "(239) 572-0066", "description": "Indulge in the epitome of luxury real estate experiences with the Taranto Team, where excellence knows no bounds. Beyond their unparalleled success in the luxury real estate industry, the Taranto Team operates as a world-class marketing agency, curating unparalleled showcases for their clients' properties.", "priceRange": "$", "address": { "@type": "PostalAddress", "streetAddress": "550 5th Ave S", "addressLocality": "Naples", "addressRegion": "FL", "postalCode": "34102", "addressCountry": "US" } }, "publisher": { "@type": "Organization", "name": "Taranto Team", "logo": { "@type": "ImageObject", "url": "https://res.cloudinary.com/luxuryp/images/f_auto,q_auto/ydjcwjonq3cumnc0vjb5/ttmermaid-lightlogo" }, "address": { "@type": "PostalAddress", "streetAddress": "550 5th Ave S", "addressLocality": "Naples", "addressRegion": "FL", "postalCode": "34102", "addressCountry": "US" } } }; const script = document.createElement('script'); script.type = 'application/ld+json'; script.text = JSON.stringify(schema); document.head.appendChild(script); } catch (e) { console.error("Error creating schema markup: ", e); } } } createSchemaMarkup(); });
5624 Lago Villaggio WAY, NAPLES, FL 34104
2
beds
2
baths
2,044 Sq.Ft. LIVING AREA
6,970 Sq.Ft. lot
Guiding you to meet your objective in a discrete and professional manner is of the utmost importance. Our dedicated team will work tirelessly to ensure your real estate goals are achieved. Get in touch today and experience the difference firsthand.