Change "District Transparency" in footer and .html page to customize text
Put in advanced preferences tab (edit page and copy from html block)
//remove district transparency
document.addEventListener("DOMContentLoaded", function () {
// Find the link in the footer with the text "District Transparency"
const footerLinks = document.querySelectorAll("footer a");
footerLinks.forEach(link => {
if (link.textContent.trim() === "District Transparency") {
// Update the text only, keep the href unchanged
link.textContent = "DESIRED TEXT HERE FOR FOOTER";
}
});
});
document.addEventListener("DOMContentLoaded", function () {
// Check if the current page URL is /transparency.html
if (window.location.pathname === "/transparency.html") {
// Find all h2 elements on the page
const headings = document.querySelectorAll("h2");
headings.forEach(heading => {
if (heading.textContent.trim() === "District Transparency") {
// Update the text content
heading.textContent = "DESIRED TEXT HERE FOR HTML PAGE";
}
});
}
});
New version also updates "our district is dedicated to operating in a transparent manner"
//remove district transparency
document.addEventListener("DOMContentLoaded", function () {
// Find the link in the footer with the text "District Transparency"
const footerLinks = document.querySelectorAll("footer a");
footerLinks.forEach(link => {
if (link.textContent.trim() === "District Transparency") {
// Update the text only, keep the href unchanged
link.textContent = "RFA Transparency";
}
});
});
document.addEventListener("DOMContentLoaded", function () {
// Check if the current page URL is /transparency.html
if (window.location.pathname === "/transparency.html") {
// Find all h2 elements on the page
const headings = document.querySelectorAll("h2");
headings.forEach(heading => {
if (heading.textContent.trim() === "District Transparency") {
// Update the text content
heading.textContent = "RFA Transparency";
}
});
}
});
document.addEventListener("DOMContentLoaded", function () {
// Ensure the script runs only on the correct page
if (window.location.pathname.includes("transparency.html")) {
// Select all
elements in the body document.querySelectorAll("p").forEach(paragraph => { if (paragraph.textContent.includes("Our district is dedicated")) { // Replace the text paragraph.textContent = paragraph.textContent.replace("Our district is dedicated", "The RFA is dedicated"); } }); } });