Search and Filter Pro Breaks on template 5.1.x

Uncaught TypeError: t.replace is not a function
line #38 if you pretty print code

Code Snippet

 String.prototype.replaceAll = function(t, e, a) {
                        return this.replace(new RegExp(t.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g, "\\$&"),a ? "gi" : "g"), "string" == typeof e ? e.replace(/\$/g, "$$$$") : e)

Edit you non minified version

Could the new update somehow cause this function to have an issue?

New Sliders don’t work with plugin activated then start working again once its disabled again.

I can go to the developer if you think they could update something and have any suggestions thanks.


p.s. looking forward to the Theme options reboot with Variables and Globals .

Hello Sam,

Thanks for writing to us.

It seems that the issue is coming from the third-party plugin. I would suggest you please contact a developer to fix their plugin issue or make it compatible with the X/Pro theme. Please note that we don’t provide any third-party plugin support. It is out of the support scope.

Thanks for understanding

I got in touch with the developer and seems that enabling lazy load on Search and Filter plugin fixes the issue.

Another note is that the conflict happens only when you add a slider element to the page.


Hi Sam,

We’re glad that it is now working properly on your end! If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.