• Resolved steve92

    (@steve92)


    In Show advanced settings, the setting for Minimum word length doesn’t work.

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

    (@msaari)

    How does it not work? What are you trying to do that does not work as expected?

    Thread Starter steve92

    (@steve92)

    Indexing table, show advanced options/Minimum word length

    Plugin Author Mikko Saari

    (@msaari)

    I’m sorry, I don’t understand.

    I know the settings field looks a bit weird; it’s too short for reason, probably a change in WordPress admin settings, but the option should still work as usual.

    Thread Starter steve92

    (@steve92)

    I’m not saying it doesn’t work, the box is too small and can’t be set.

    https://snipboard.io/1UFtzT.jpg

    Plugin Author Mikko Saari

    (@msaari)

    Yes, we know that and will fix that. We are overhauling the settings completely to make them meet modern standards.

    But the box does work, and it is possible to change the value, even though the field is too narrow. You can, for example, move into the field with the tab key and adjust the value with keyboard, or you can use the browser inspector to make the field wider.

    You can also adjust the value from the general options page at /wp-admin/options.php.

    Thread Starter steve92

    (@steve92)

    I tried putting this css in my style.css child but it doesn’t work.

    relevanssi_min_word_length {
    width: 4em;
    }

    • This reply was modified 1 week ago by steve92.
    Plugin Author Mikko Saari

    (@msaari)

    Your theme style.css isn’t applied to admin pages.

    The quickest way to set the value is adding this to your theme functions.php:

    add_action( 'init', function() {
    update_option( 'relevanssi_min_word_length', X );
    } );

    Where X is the value you want. The default is 3, sometimes it makes sense to set it to 2, few other values make any sense. Visit your site once to set the value, then you can remove this code.

    Thread Starter steve92

    (@steve92)

    It works, but I used the “inspect element” method to enlarge the field.

Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.