Thread Starter
zroku
(@zroku)
I found a fixed by changing the custom javascript to:
function replace(element, from, to) {
if (element.childNodes.length) {
element.childNodes.forEach(child => replace(child, from, to));
} else {
const cont = element.textContent;
if (cont) element.textContent = cont.replace(from, to);
}
};
replace(document.body, new RegExp("hello", "g"), "hi");
It all works now. Thanks.
Thread Starter
zroku
(@zroku)
Other pages also have issues. Like on the single listing page, the footer thumbnail isn’t working what it’s supposed to be.
-
This reply was modified 4 years, 9 months ago by zroku.
My site also has this issue even with the latest version 7.0.4.1
https://john832knowthetruth.org/directory/single-location/
https://john832knowthetruth.org/directory/single-category/
Thanks.
-
This reply was modified 4 years, 9 months ago by zroku.