Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #941172

    We use a masonry gallery on just about every webpage of our membership site. One of our members just brought to my attention that when you click on a page number to move to other pages it reloads the page and jumps to the top of the page, and then the viewer has to scroll down again to see the gallery. If they are clicking on page numbers in the gallery they obviously want to see the gallery, not have to scroll down and find it again.

    I know we had problems with the gallery when we first started using Enfold, I thought this was one of them and got fixed. But obviously it’s not working now.

    Can you fix this bug please and in the meantime is there a workaround that I can use so it doesn’t do this?

    #941549

    Hey Michael,

    Here is the code you can put in your funtions.php

    
    
    add_action('wp_footer', 'av_modify_masonry_page_nave');
    
    function av_modify_masonry_page_nave(){
    ?>
    <script type="text/javascript">
    (function($) {
        const a = () => {
            $('#av-masonry-1 .pagination a').each(function() {
                $(this).attr('href', $(this).attr('href') + '#av-masonry-1');
            });
        }
    
        a();
    })(jQuery);
    </script>
    <?php
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #942377

    Thanks Victoria, but I’ve added that code and it doesn’t work. It doesn’t change anything. It still brings you to the top of the page after refreshing the page. I have tried clearing the browsing data in Chrome, and opening in another browser which I rarely every use in case my browser was caching it with the same results.

    #942850

    Problem still exists. Is anyone looking into this ticket?

    #942913

    Hi,

    We are sorry for the late response. We modified the code a bit. Please try it again. Or post the login details in the private field so that we can test it.

    Best regards,
    Ismael

    #942943

    I changed to the new code. It still didn’t work. See private content for login info.

    #943924

    Hi,

    We can’t find the script in the source code. ( see private field )

    Please disable the plugins temporarily then add the script directly on the functions.php file.

    Best regards,
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.