Hello,
I have an issue with my website.
In the footer links, one of them opens automatically on the mobile, I wanted them all to be closed and only open if the person clicks. How can I solve this?
A footer link was automatically opening on mobile devices instead of remaining closed until clicked. The issue was caused by JavaScript code in the theme’s custom.js file that triggered an automatic click event on page load.
Solution provided:
window.onload function that auto-clicks the second footer block item buttonOutcome:
The solution successfully resolved the issue. All footer links now remain closed by default and only open when users click them, restoring the expected mobile behavior.
Hello,
I have an issue with my website.
In the footer links, one of them opens automatically on the mobile, I wanted them all to be closed and only open if the person clicks. How can I solve this?
@Dawenn welcome to the shopify Community,
Yes this can be solved if you have coding idea then you have to follow below steps
Online Store > theme files > custom.js and remove or comment below code
/* (window.onload = function () {
$(".footer__block-item.footer__block-item--links:nth-child(2) button").click();
}), */
same like i did. If you have any issue do let me know i can do it for you ![]()
thanks
Worked perfectly! Thank you, you saved me ![]()