Shopify themes, liquid, logos, and UX
Hi guys, I'm having issue with my store. When I click on one of the collapsible row lets say I click on description and then click on next collapsible row (specifications). I end up in the footer menu and I have to scroll up to see the collapsible row.
can someone help me with this issue?
here is the link for my store's product page.
Hi @SinghSells
The issue occurs because clicking on collapsible rows changes the page's scroll position due to anchor links or improper JavaScript handling. To fix this:
document.querySelectorAll('.collapsible-row').forEach(row => {
row.addEventListener('click', e => {
e.preventDefault();
});
});
3. Edit CSS (Optional): If smooth scrolling behavior persists, verify padding/margins around collapsible sections.
If you have other questions, I am willing to answer them more.
Best regards,
Daisy
Hi thanks for the response. However, where do I need to paste that given code above?
Hi @emink6
The issue likely arises because the website editor is set to preview the mobile version. This doesn't affect how the site appears to desktop users but can limit your editing view.
To resolve this:
If the issue persists, clear your browser cache or try another browser.
If you have other questions, I am willing to answer them more.
Best regards,
Daisy
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024