Move search block to widget on small screens
This commit is contained in:
@@ -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