JS Code SnippetOn the page you want this to appear, add an HTML widget (FREE) and paste the code in there. Be sure to have before your code and after the code if it isn't already inserted above.
document.addEventListener('DOMContentLoaded', () => { const replaceInfinity = () => { document.querySelectorAll('*:not(script):not(style)').forEach((element) => { // Check if the element has no child elements and contains '999999999' if (element.children.length === 0 && element.textContent.includes('999999999')) { // Replace '999999999' with the infinity symbol (∞) element.textContent = element.textContent.replace(/999999999/g, '∞'); } }); };
// Initial check when the DOM is fully loaded replaceInfinity();
// Observe the DOM for changes (useful for Elementor or dynamically loaded content) const observer = new MutationObserver(() => { replaceInfinity(); });
// Start observing the DOM for added/modified elements observer.observe(document.body, { childList: true, subtree: true }); });