Shopify themes, liquid, logos, and UX
Hi everyone... I am having problems with the mobile version of my website - visit www.ContemporaryAccentFurniture.com
If you add a product to the cart, the site freezes. You can't scroll up or down or do anything.
Any suggestions on how to fix this?
Thanks guys!
Solved! Go to the solution
This is an accepted solution.
Well I found the issue to be simple
In your theme click on Edit code > Assets > App.js
Find the below line of code and comment it all
//block scrolling on mobile
if ($(window).width() <= 798) {
var $cart_container = $(this).parent();
if($cart_container.hasClass('active_link')) {
$('body').addClass('blocked-scroll');
} else {
$('body').addClass('blocked-scroll');
}
}
And replace it with this
//block scrolling on mobile
/* if ($(window).width() <= 798) {
var $cart_container = $(this).parent();
if($cart_container.hasClass('active_link')) {
$('body').addClass('blocked-scroll');
} else {
$('body').addClass('blocked-scroll');
}
} */
// Commenting whole code
This is an accepted solution.
Well I found the issue to be simple
In your theme click on Edit code > Assets > App.js
Find the below line of code and comment it all
//block scrolling on mobile
if ($(window).width() <= 798) {
var $cart_container = $(this).parent();
if($cart_container.hasClass('active_link')) {
$('body').addClass('blocked-scroll');
} else {
$('body').addClass('blocked-scroll');
}
}
And replace it with this
//block scrolling on mobile
/* if ($(window).width() <= 798) {
var $cart_container = $(this).parent();
if($cart_container.hasClass('active_link')) {
$('body').addClass('blocked-scroll');
} else {
$('body').addClass('blocked-scroll');
}
} */
// Commenting whole code
Oh!! It actually worked! Thanks so much!
Hi, I am hearing from my viewers that my website freezes and glitches I check myself and on mobile when you try to scroll down it doesn’t let you. How can I fix this?
hi would anyone be able to help, the mobile version on my product page constantly freezes when a new variant is selected.
a losing icon just stays on my screen here a link https://www.selfidentity.co.uk/products/closure?variant=22776704991290
thank you
Prabhat,
That solution worked for me! Thank you!
Would you be able to tell me what that code is for? I don't want to block it if there is a purpose I don't know about.
Cheers,
Noel
Hi, we are experiencing the same issue, but the theme that were using dosent have the app.js file. I did a "Find" with a snippet of the code you provided and have yet to find the correct file. Any Help would be greatly appreciated!
Website: TwistedPro.us
Hi TP_Marketing,
I don't see the issue on your website anymore. It seems like you have figure out the issue.
If you still have issue you can respond to this thread.
Hey,
My site is www.zenintcg.com
When you access the site on IOS mobile and after adding to cart, the site freezes. On Android and desktop it works fine but IOS mobile is not working.
Does anyone know of a fix for this?
Thank you
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024