-
AuthorPosts
-
April 12, 2018 at 11:57 pm #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?
April 13, 2018 at 3:28 pm #941549Hey 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,
VictoriaApril 16, 2018 at 2:29 am #942377Thanks 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.
April 17, 2018 at 1:27 am #942850Problem still exists. Is anyone looking into this ticket?
April 17, 2018 at 5:17 am #942913Hi,
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,
IsmaelApril 17, 2018 at 6:22 am #942943I changed to the new code. It still didn’t work. See private content for login info.
April 19, 2018 at 7:05 am #943924 -
AuthorPosts
- You must be logged in to reply to this topic.