• My site’s primary search language is Korean and I need to adjust minimum character (from default ‘3’ down to ‘1’). How can I configure this via child theme settings (functions.php) in order to avoid reset during future plugin updates?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Sorry, I hadn’t noticed this was about Live Ajax Search, not basic Relevanssi.

    In Live Ajax Search, you change the minimum character length like this:

    add_filter( 'relevanssi_live_search_configs', function( $configs ) {
        $configs['default']['input']['min_chars'] = 1;
        return $configs;
    } );
    • This reply was modified 2 years, 9 months ago by Mikko Saari.
    Thread Starter keysuck

    (@keysuck)

    Looks like the plugin did not replace the native live search by Porto theme to begin with. I looked at your documentation and saw customizations for several themes but mine. How can I verify that Relevanssi Live Ajax Search overrides the default search?

    Plugin Author Mikko Saari

    (@msaari)

    I don’t know; Porto is a premium theme, and I have no access to it. In general, overriding the default live search in a theme is probably not worth the effort. If you want to use Relevanssi, it’s better to see if the default live search can be made to use Relevanssi instead of the WP default search.

    The best place to ask is the Porto theme support. You can ask them:

    1. Is it possible to disable the default live search? (If the live search can be disabled, then you can replace it with Relevanssi Live Ajax Search – see the “Installing Relevanssi Live Ajax Search” section here for instructions.)

    2. Is it possible to change the search provider for the default live search? Some themes offer a filter hook that can be used to either modify the query parameters or to change the query function; both can be used to make the theme live search use Relevanssi.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Setting minimum character in child theme’ is closed to new replies.