• Resolved 1erwin2

    (@1erwin2)


    The tab info is shown, but first Scrolls up to the top of the product, so people need to scroll down again to read the tab info

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • jpowersdev

    (@jpowersdev)

    Hi @1erwin2,

    This looks like an issue with the JS in your theme. I’m seeing the following snippet in your theme’s custom JS file –

    // *only* if we have anchor on the url
        if (window.location.hash) {
            $(window).load(function () {
                var sectionid = window.location.hash;
                sectionid = sectionid.replace('/', '');
                if ($(sectionid).length > 0) {
                    $('html, body').animate({
                        scrollTop: $(sectionid).offset().top - hHeight
                    }, 1000);
                }
            });
        }

    That snippet attempts to animate the scroll to an element. The problem is, the tab is hidden when the animation happens, so the offset is 0 (the top of the page). You’ll need to either remove that section, or modify it to handle tabs correctly.

    Jon

Viewing 1 replies (of 1 total)

The topic ‘Tab links tot product’ is closed to new replies.