Title: Keywords problem
Last modified: October 31, 2019

---

# Keywords problem

 *  [falboe](https://wordpress.org/support/users/falboe/)
 * (@falboe)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/keywords-problem-2/)
 * Hello, I have a question and a problem. Can the plugin ignore the “:” sign? Because
   I have the product name: “Custom ABC Product 1” and when I enter “Custom ABC:
   Product 1” the program finds nothing.
 * Thank you in advance.

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/keywords-problem-2/#post-12153985)
 * Hi,
 * Sure, but only via custom coding unfortunately. Try adding this custom code to
   the **functions.php** in your theme/child theme directory. Before editing, please
   make sure to have a full site back-up just in case!
 *     ```
       add_filter('asl_search_phrase_before_cleaning', 'asp_replace_characters', 10, 1);
       function asp_replace_characters( $s ) {
         $characters = "',._-?!:"; // Type characters one after another
         $replace_with = ' ';     // Replace them with this (space by default)
         if ( is_array($s) ) {
           if ( isset($s['s']) && !$s['_ajax_search'] ) 
             $s['s'] = str_replace(str_split($characters), $replace_with, $s['s']);      
         } else {
           $s = str_replace(str_split($characters), $replace_with, $s);
         }
         return $s; 
       }
       ```
   
 * This should do the trick.
 * Best,
    Ernest M.

Viewing 1 replies (of 1 total)

The topic ‘Keywords problem’ is closed to new replies.

 * ![](https://ps.w.org/ajax-search-lite/assets/icon-256x256.png?rev=3192672)
 * [Ajax Search Lite - Live Search & Filter](https://wordpress.org/plugins/ajax-search-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-search-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-search-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-search-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-search-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-search-lite/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/keywords-problem-2/#post-12153985)
 * Status: not resolved