Чтобы поиск работал при нажатии на Enter, отредактируйте файл
Посмотреть вложение 3800
Измените input, добавив
Ниже input добавьте код:
includes/header.ejs
Посмотреть вложение 3800
Измените input, добавив
onkeydown="cinemaSearch(this)"
Ниже input добавьте код:
HTML:
<script>
function cinemaSearch(e) {
if (event.key === 'Enter') {
window.location.href='/<%- page.urls.search %>?q='+encodeURIComponent(e.value);
}
}
</script>
Посмотреть вложение 3801
Админ-панель - Вставить код - В верх страницы
HTML:
<style>
.cinemapress-autocomplete ul {max-wigth: 400px !important}
.cinemapress-autocomplete ul li p {max-wigth: 370px !important}
</style>