📁 Category

Digital Marketing.

213 Article s Found

document.addEventListener("DOMContentLoaded", function () { const wrapper = document.querySelector("#vbtEFIWrapper-190976"); if (!wrapper || wrapper.dataset.vsfStyled === "true") { return; } const form = wrapper.querySelector("form"); if (!form) { return; } wrapper.dataset.vsfStyled = "true"; /* Remove every VBOUT-generated heading inside this form */ wrapper.querySelectorAll("h1, h2, h3, h4").forEach(function (heading) { heading.remove(); }); /* Change field labels */ const labels = wrapper.querySelectorAll("label"); labels.forEach(function (label) { const labelText = label.textContent.trim().toLowerCase(); if (labelText.includes("first name")) { label.textContent = "First Name"; } if (labelText.includes("email")) { label.textContent = "Email Address"; } }); /* Improve input placeholders */ const firstNameInput = wrapper.querySelector( 'input[name*="first" i], input[placeholder*="first" i]' ); const emailInput = wrapper.querySelector('input[type="email"]'); if (firstNameInput) { firstNameInput.placeholder = "Your first name"; } if (emailInput) { emailInput.placeholder = "Your best email address"; } /* Improve submit button copy */ const submitButton = wrapper.querySelector( 'input[type="submit"], button[type="submit"]' ); if (submitButton) { if (submitButton.tagName.toLowerCase() === "input") { submitButton.value = "Send Me Marketing Tips"; } else { submitButton.textContent = "Send Me Marketing Tips"; } } /* Build branded content */ const brandedBox = document.createElement("div"); brandedBox.className = "vsf-subscriber-box"; const layout = document.createElement("div"); layout.className = "vsf-subscriber-layout"; const copyArea = document.createElement("div"); copyArea.className = "vsf-subscriber-copy"; const label = document.createElement("span"); label.className = "vsf-subscriber-label"; label.textContent = "VSF Marketing Insights"; const title = document.createElement("div"); title.className = "vsf-subscriber-title"; title.textContent = "Get Better Marketing Advice"; const description = document.createElement("p"); description.className = "vsf-subscriber-description"; description.textContent = "Practical website, SEO, advertising, and lead generation insights delivered to your inbox."; const formArea = document.createElement("div"); formArea.className = "vsf-subscriber-form"; copyArea.appendChild(label); copyArea.appendChild(title); copyArea.appendChild(description); form.parentNode.insertBefore(brandedBox, form); formArea.appendChild(form); layout.appendChild(copyArea); layout.appendChild(formArea); brandedBox.appendChild(layout); });