Tagged: Masonry Gallery
-
AuthorPosts
-
August 11, 2020 at 11:12 pm #1236751
We have Masonry Galleries on over 100 pages on our site. Most of these galleries have 2-3 pages and pagination links are displayed. After the latest Enfold update the pagination links no longer work. When you click them you stay on the same gallery page.
We previously had issues with the pagination links, when you clicked a pagination link the gallery page would change, but it would jump up to the top of the page and the user would have to scroll back down to see the gallery.
We were given code to put into the functions.php file, and had to create a Color Section with CSS ID to hold the gallery and it worked. You can see our previous support thread here: https://kriesi.at/support/topic/masonry-gallery-pagination-links-jump-to-top-of-page-instead-of-to-gallery/
After this Enfold update when clicking on the pagination links the view stays at the gallery as it should (does not jump to top of page), but the gallery view stays on the 1st page.
This is the custom code we are using to fix the gallery pagination issue:
// Fix gallery pagination issue
function add_custom_script(){
?>
<script type=”text/javascript”>
(function($){
function b() {
$(‘.pagination .inactive’).click(function(e) {
e.preventDefault();var section = $(this).parents(‘.avia-section’).attr(‘id’),
link = $(this).attr(‘href’) + ‘#’ + section;window.location.href = link;
});
}b();
})(jQuery);
</script>
<?php
}
add_action(‘wp_footer’, ‘add_custom_script’);`- This topic was modified 4 years, 4 months ago by mikehartrich. Reason: edited for clarity
August 13, 2020 at 7:08 am #1237280Can someone please look at this?
August 17, 2020 at 1:37 am #1238319Hi,
Sorry for the late reply, and thanks for the login, I first disabled your custom code to see the pagination working the default way, but as soon as your page loads the/page/2/
part of the URL is stripped so the pagination doesn’t advance to the next page.
It looks like your gform plugin might be doing this.
Please try disabling your plugins and enable one at a time clearing your cache in between each one.
Once we can get the pagination working again we can take another look at the scrolling to the top issue.Best regards,
MikeAugust 23, 2020 at 8:08 am #1240048Hi Mike, I turned off all of the plugins, cleared the cache, and the problem still existed.
August 25, 2020 at 2:17 pm #1240662Hi,
Thank you for the feedback, I was not able to reproduce this error on my localhost and I didn’t find a cause for your issue, but I did find a similar issue on another site and I tried the compare settings and adjust my localhost to the same, without success.
I have asked the rest of the team to review.
Can you post a copy of your .htaccess file, perhaps there is a rule that is causing this.
I just wanted to let you know we are still working on this.Best regards,
MikeAugust 25, 2020 at 4:36 pm #1240698Hi!
Sorry for the problems.
It is caused by WP 5.5 and limited to post – if you switch back to 5.4.2 everything works as expected – also if you use the ALB element on a page..
We are working to find a solution. Thank you for your patience.
Cheers!
GünterAugust 28, 2020 at 11:36 pm #1241719Thanks guys. Do you still need to see the .htaccess file or is it definitely an issue with using WP 5.5? I think it’s going to be hard for us to switch the WP version back.
if you use the ALB element on a page
Do you mean the issue happens if we use an ALB element? What is ALB?
August 29, 2020 at 8:32 pm #1241849Hi,
Sorry, we don’t need the .htaccess file. The dev team has released an update for this, please see the link in the Private Content area. To try this, in the zip file you will find a folder “enfold”, assuming that your current theme is installed in the “enfold” directory at “/wp-content/themes/” (as it should be), you will need to rename your current directory to “enfold-old” and upload the new directory via ftp. By renaming the directory to “enfold-old” via ftp and uploading a new “enfold” via ftp you can easily fallback to your current version by reversing the steps.
Please don’t try to overwrite the theme folder, as this will leave old files behind and cause errors.Best regards,
MikeSeptember 1, 2020 at 5:45 am #1242360Hi,
is there any update on this? I now have 4.7.6.3, still does not work. How can i get the update?
Cheers
– o
September 1, 2020 at 6:22 am #1242373Thank you Mike, I’ll try that.
onlylettersandnumbers wants to try the update too. See their comment above.
September 1, 2020 at 12:21 pm #1242496Hi, @mikehartrich, did this work for you?
@onlylettersandnumbers, I have re-opened your thread here, so you can see the link in the Private Content area. Please try the steps I posted and let us know in that thread if this solves.Best regards,
MikeSeptember 4, 2020 at 10:20 pm #1243450Hi Mike,
I haven’t had time to try it yet. I’ve been busy with other projects. I will do it sometime today and let you know.September 4, 2020 at 11:54 pm #1243471Yes, it works! Thank you Mike!
September 5, 2020 at 12:59 am #1243489Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonSeptember 28, 2020 at 6:05 pm #1249103Hallo
Ich habe das selbe Problem. Seit der Aktualisierung auf Enfold 4.7.6.3 funktioniert die Paginierung der Masonry Galerie nicht mehr! Leider kann ich hier die Lösung nicht finden!…Grüsse
ThomasSeptember 29, 2020 at 2:14 pm #1249393Hi,
@thomas6602, the beta for our next update has corrected this, if you would like to try this please open a new thread so we can post the link for you. Since this is not your thread you will not see anything we write in the Private Content area.
You can post a link to your new thread here so we can find it easier.Best regards,
MikeOctober 2, 2020 at 10:56 pm #1250206Hi Jordan,
Go ahead and close it. I don’t see the link to do so myself. Sorry for the late reply.
October 3, 2020 at 5:55 am #1250252Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Enfold (4.7.6.2) Breaks Masonry Gallery Pagination’ is closed to new replies.