New Landing How can we help? Themeforest Theme Support Dante Back to Top, Product pagination

Viewing 15 posts - 1 through 15 (of 21 total)
  • Posted in: Dante
  • #119910
    crease
    Member
    Post count: 101

    Is it possible to set the shop pages to return to the top of the page when clicking next,back or a page number when viewing the products in the shop?

    #119920
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    I’m afraid you can’t control the behaviour of clicking the browsers previous and next arrows

    – Kyle

    #119925
    crease
    Member
    Post count: 101

    Ha ha, Thanks for that information but that was not what I was talking about.

    I mean the pagination of the products within the shops website. See screenshot attached.

    The products seem to load in with Ajax as the page changes but the page remains in the same location as the new products load in, is there some code I could add to scroll the page back to the top once a new page of products has been selected?

    Attachments:
    You must be logged in to view attached files.
    #119929
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Please can you provide your link so I can check this?

    – Kyle

    #119930
    crease
    Member
    Post count: 101
    This reply has been marked as private.
    #119997
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Nothing is loading for me, just the background (see screenshot)

    – Kyle

    Attachments:
    You must be logged in to view attached files.
    #120027
    crease
    Member
    Post count: 101

    Was just making edits and a login broke the site. Should be back up now.

    #120260
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

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

    <script>
    jQuery(document).ready(function($) {
    $('ul.page-numbers li a').click(function(e){e.preventDefault();
      $('body,html').animate({scrollTop: 100}, 800); 
    });
    });
    </script>

    Thanks
    Mohammad

    #120275
    crease
    Member
    Post count: 101

    Thanks Mohammad,
    This works from the initial page but then doesn’t seem to work from page 2 onwards. Either forwards or back. Any ideas?

    #120278
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please remove that code and use this one code:-

    <script>
    jQuery(document).ready(function($) {
    $('ul.page-numbers li a').live('click',function(e){
    e.preventDefault();
      $('body,html').animate({scrollTop: 100}, 800); 
    });
    });
    </script>

    Thanks
    Mohammad

    #120285
    crease
    Member
    Post count: 101

    Thanks for your help on this.

    Scrolls to the top on instances of next page now, but only the first time you view the page and not quite all the way to the top.

    If you select individual page number or previous button, loads in in same view.

    #120290
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I see only blank background at this page http://146.247.49.7/~langleyd/products/.
    Thanks
    Mohammad

    #120303
    crease
    Member
    Post count: 101

    Sorry I was adjusting another plugin that temporarily blanked the site. Should be working agin now. Thanks again for looking into this.

    #120341
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi there,

    Unfortunately that is not part of the current theme functionality, and it’s not within the scope of our support to be able to provide that functionality as it is more work than a small customisation. While we’d love to be able to support every customisation request, we simply don’t have the time. We recommend that you seek a freelance developer if you need that functionality, potentially from one of the below resources:

    https://codeable.io

    Home


    http://www.microlancer.com

    Thanks 🙂
    With Best Regards
    Mohammad

    #120347
    crease
    Member
    Post count: 101

    So does this you cant work it out easily? You were helping and then decided it was out of the scope of the support!

    Surely this should be a STANDARD feature for a shop theme with multiple pages???

    Thanks for the attempt to help, I will ask elsewhere.

Viewing 15 posts - 1 through 15 (of 21 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