Move search block to widget on small screens
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user