Product Tabs Auto-Close as soon as I click to open them

5 replies3 participantsUpdated by Jack Richardson

  • Avatar: Safe Desires
    Safe Desires
    Participant

    when clicking on the accordion on mobile, it closes the tab and scrolls the screen down a little bit

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.

    5 Answers

    Avatar: Ayan Rahman
    Ayan Rahman
    Support staff

    Hi,

    Thank you for reaching out to us.

    Could you please try adding the following PHP snippet to your child theme’s functions.php file or to a code snippets plugin (if you are using one):

    add_filter('etheme_autoscroll_single_tabs_on_mobile', '__return_false');

    This will prevent the page from scrolling when clicking on the tabs, so the behavior you are currently experiencing will no longer occur.

    Warm Regards,
    The 8Theme Team

    Avatar: Safe Desires
    Safe Desires
    Participant

    It is no longer auto closing, but it’s still jumping/autoscrolling to the tabs element. So, on page load it jumps to the description (first tab) and then it will scroll so the other tab headers are on top if one clicks to open another tab.

    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Safe Desires,

    As we can see in your video, you are testing a staging website, while we have tested the issue on your live website and were unable to reproduce it on our devices. Could you please provide the correct URL of your staging website and perform tests from several devices to ensure that the issue is not related to cached content?

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: Safe Desires
    Safe Desires
    Participant

    It happens with every single product page on mobile

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Safe Desires,

    Please clear your cache and check again. The issue occurred because an incorrect filter name was used. The correct filter name is “etheme_autoscroll_single_tabs_on_mobile” (https://gyazo.com/8456ab10e057b827233b08c174515205).

    Best regards,
    Jack Richardson
    The 8Theme’s Team

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register