Switch Columns on mobile

https://jennifervanwykauthor.com/all-i-need/

Hello, that’s the website, so before what I did was add the mobile 1 and mobile 2 to the columns and added this JS (function($) {
if ($(window).width() < 480) {
jQuery( “.mobile1” ).insertBefore( “.mobile2” );
}
})(jQuery);

but is not working! :frowning:

I could use some help!

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.

  1. Testing for Plugin Conflict
  2. CSS/JS Customization
  3. Version Compatibility
  4. 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

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.