New Landing How can we help? Atelier Links not anchoring properly

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #216339
    G. from V.
    Member
    Post count: 83

    Hello guys,

    A problem I’m having with anchors is that when I click on a link with anchor to another page, the link attempts to go to the anchor but since the page loads slower, the link never gets to the anchor.

    The page where the links are: http://indie.ickstudio.net/ — Links are in “RX COLLECTION” and in “VER TODOS” (where it says iPhone cases).

    They should take straight to the titles:
    – EYEWEAR (http://indie.ickstudio.net/products/#eye)
    – CASES (http://indie.ickstudio.net/products/#cases)

    I kindly appreciate your help.

    Thanks.

    #216765
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom js code at Admin -> Theme Options -> Custom JS.

    <script>
    jQuery(document).ready(function($) { 
        var $root = $('html, body');
        var ancloc = window.location.hash;
        event.preventDefault();
            $root.animate({
                scrollTop: $(ancloc).offset().top
            }, 500, function () {
                window.location.hash = href;
            });
            return false;
    });
    </script>

    Thanks
    Mohammad

    #217041
    G. from V.
    Member
    Post count: 83

    Thanks Mohammad, it worked.

    Is there a way to make it scroll softer from the page top instead of going right in there?

    #217074
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am not getting this point. Please explain in detail.
    Thanks
    Mohammad

    #218925
    G. from V.
    Member
    Post count: 83

    Disregard Mohammad, thanks for your help.

    Best regards.

    #218935
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. Thanks Mohammad.

    -Rui

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register