aw_support
10/8/2019 - 7:16 PM

(Force) JS Replace Code

//Replaces text content on a page 
//Useful For: Blog byline, Banner changes

//Example
jQuery('.selector').html(function(index, currentHtml) {
    return currentHtml.replace('word to be replaced', '<br> replacement');
});