Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #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
    #1237280

    Can someone please look at this?

    #1238319

    Hi,
    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,
    Mike

    #1240048

    Hi Mike, I turned off all of the plugins, cleared the cache, and the problem still existed.

    #1240662

    Hi,
    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,
    Mike

    #1240698

    Hi!

    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ünter

    #1241719

    Thanks 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?

    #1241849

    Hi,
    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,
    Mike

    #1242360

    Hi,

    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

    #1242373

    Thank you Mike, I’ll try that.

    onlylettersandnumbers wants to try the update too. See their comment above.

    #1242496

    Hi, @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,
    Mike

    #1243450

    Hi 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.

    #1243471

    Yes, it works! Thank you Mike!

    #1243489

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1249103

    Hallo
    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
    Thomas

    #1249393

    Hi,

    @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,
    Mike

    #1250206

    Hi Jordan,

    Go ahead and close it. I don’t see the link to do so myself. Sorry for the late reply.

    #1250252

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘Enfold (4.7.6.2) Breaks Masonry Gallery Pagination’ is closed to new replies.