What's your biggest current challenge? Have your say in Community Polls along the right column.

issue regarding collapsible row

issue regarding collapsible row

SinghSells
Excursionist
45 1 8

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.

Replies 3 (3)

DaisyVo
Shopify Partner
1076 138 152

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:

  1. Check Theme Settings: Ensure the collapsible rows aren’t linked with anchor tags (e.g., #description) that jump to specific sections of the page.
  2. Adjust JavaScript: Add a script to prevent scroll changes when rows toggle. Example:

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

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
SinghSells
Excursionist
45 1 8

Hi thanks for the response. However, where do I need to paste that given code above?

 

DaisyVo
Shopify Partner
1076 138 152

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:

  1. Check your theme editor settings under Online Store > Themes > Customize: https://prnt.sc/1JKq89TZC0CH
  2. Ensure the editor is set to "Desktop" mode (you'll see a toggle for desktop, tablet, and mobile at the bottom or top of the editor).
  3. Save your settings and refresh the editor.

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

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution