Set a Minimum Length for Live Searches

Blocksy includes a powerful live search feature that displays real-time search results as you type, creating a dynamic and engaging experience for your visitors. However, on some hosting environments or slower systems, this instant feedback can impact performance since the search runs with every keystroke.

If you’d like to optimise performance by requiring a minimum number of characters before the live search activates, you can use the following PHP filter:

add_filter('blocksy:search-form:min-length', function () {
	return 3;
});
Not the solution you are looking for?

Please check other articles or open a support ticket.