A 7 Step Guide to Strategic Sourcing
document.addEventListener("DOMContentLoaded", function() {
const postTitle = document.getElementById("kh-ptitle");
const lph1 = document.getElementById("kh-l1");
const lph2 = document.getElementById("kh-l2");
const lph1Exists = lph1 && lph1.textContent.trim() !== "";
const lph2Exists = lph2 && lph2.textContent.trim() !== "";
if (!lph1Exists && !lph2Exists) {
// Both LPH1 and LPH2 empty → show Post Title
postTitle.style.display = "block";
if (lph1) lph1.style.display = "none";
if (lph2) lph2.style.display = "none";
} else {
// LPH1 or LPH2 exists → show them, hide Post Title
postTitle.style.display = "none";
if (lph1Exists) lph1.style.display = "block";
if (lph2Exists) lph2.style.display = "block";
}
});
document.addEventListener("DOMContentLoaded", function () {
const imgNew = document.getElementById("image2"); // New ACF
const imgOld = document.getElementById("image1"); // Old ACF + fallback
const imgFallback = document.getElementById("imageFallback"); // Generic fallback (hidden initially)
// Helper to get the actual image src (handles Elementor lazy-load)
function getImgSrc(widget) {
if (!widget) return null;
const img = widget.querySelector("img");
if (!img) return null;
return img.getAttribute("data-src") || img.getAttribute("data-lazy-src") || img.getAttribute("src") || '';
}
// Check if src is valid (not empty or placeholder)
function isValid(src) {
return src && src.trim() !== "" && !src.includes("elementor-placeholder");
}
function applyLogic() {
const srcNew = getImgSrc(imgNew);
const srcOld = getImgSrc(imgOld);
if (isValid(srcNew)) {
// Case 1: New image exists → show new image only
imgNew.style.display = "block";
imgOld.style.display = "none";
imgFallback.style.display = "none";
}
else if (isValid(srcOld)) {
// Case 2: Old image exists → show old image only
imgNew.style.display = "none";
imgOld.style.display = "block";
imgFallback.style.display = "none";
}
else {
// Case 3: Neither exists → show fallback image
imgNew.style.display = "none";
imgOld.style.display = "none";
imgFallback.style.display = "block";
}
}
// Delay to allow Elementor to finish rendering
setTimeout(applyLogic, 800);
// Observe DOM changes (lazy-load / dynamic Elementor content)
const observer = new MutationObserver(applyLogic);
observer.observe(document.body, {
childList: true,
subtree: true,
attributes: true
});
});
Get Your Copy Now
- According to the Aberdeen report, 68% of their survey respondents say that strategic sourcing plays a prominent to crucial role in their organization
- 3% of respondents indicated that aligning sourcing activities and objectives with those of the greater organization is a top strategic goal
The above statistics clearly show the increasing role strategic sourcing plays in an organization. Procurement is under high pressure to meet their savings target and save on resources wherever possible. Many organizations are using sophisticated technology which makes the sourcing process efficient and helps save precious time, labor and cost resources.
Download this e-book to find out how technology can be leveraged at different stages of a sourcing cycle to make the sourcing process effective.
The preferred solution for world-class global enterprise



















































