How does it not work? What are you trying to do that does not work as expected?
Indexing table, show advanced options/Minimum word length
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.
I’m not saying it doesn’t work, the box is too small and can’t be set.
https://snipboard.io/1UFtzT.jpg
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.
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.
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.
It works, but I used the “inspect element” method to enlarge the field.