Knowledge Base

Replace or remove characters from search phrase

in Ajax Search Pro Tutorials Tags: charactersphraseremovereplacespecial charactersstring

By default the plugin allows searching any character without restriction. If you however need to replace (or remove) certain special characters, use this code in the functions.php file in your active theme directory:

Type the characters into the $characters variable, one after another. By default it replaces it with a space character. In case you want to remove those characters, change the

$replace_with = ' ';


$replace_with = '';