Move search block to widget on small screens

This commit is contained in:
2025-05-05 00:45:29 +02:00
parent 1548d995c3
commit 49fef0f257
19 changed files with 8410 additions and 11921 deletions

View File

@@ -1020,4 +1020,15 @@ $( function() {
$( '.payment-options .payment-option' ).removeClass( 'active' );
$( this ).addClass( 'active' );
});
});
});
document.addEventListener('DOMContentLoaded', function () {
if (window.innerWidth < 491) {
var leoSearch = document.getElementById('leo_search_block_top'); console.log(leoSearch)
var searchWidget = document.getElementById('search_widget');
if (leoSearch && searchWidget) {
searchWidget.appendChild(leoSearch);
}
}
});