Hello Nasha,
Thanks for writing to us.
I checked the given code at my installation it seems that is working fine at my end. It seems that is there is some JS console error because of that it is not working at your end.
(function($) {
if ($(window).width() < 480) {
$( ".mobile1" ).insertBefore( ".mobile2" );
}
})(jQuery);
I would suggest you troubleshoot with a few of the common issues.
- Testing for Plugin Conflict
- CSS/JS Customization
- Version Compatibility
- Disabling Cache
Please note that the code provided serves as a guide only and is to help you in getting started so implementing it and maintaining the code will be out of our support scope and for further maintenance for new possible versions of the theme that may cause the customization to break, you will need to hire a developer.
Hope it helps
Thanks for understanding