• Resolved oliverjuwig

    (@oliverjuwig)


    Hi,

    your Ajax pagination feature works quite well already. However, if you have a theme with a fixed top menu bar (as twenty seventeen for example), it seems, that your scroll calculation do not include the height of the menu bar so far.

    Best regards

    Oliver

    P.S. You cannot check this on my site currently, cause I switched AJAX off, but if you want to debug it with my site, let me know,

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    Please update to v2.8.4

    For anyone else having the same problem and not using any of the official WordPress themes, you can now use the site-reviews/enqueue/localize filter hook in your theme’s function.php file as shown below:

    
    /**
     * Add this to your theme's functions.php file if you are using 
     * ajax pagination with a theme that uses a fixed menu bar
     */
    add_filter( 'site-reviews/enqueue/localize', function( array $variables ) {
        $fixedElementSelector = '.fixed-menu'; // change this to the CSS selector of your fixed menu.
        array_push( $variables['ajaxpagination'], $fixedElementSelector );
        return $variables;
    });
    
    Thread Starter oliverjuwig

    (@oliverjuwig)

    Works great. Once again, gold support. Finally, I can deactivate my workaround with ID Tags and some post page load DOM manipulation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ajax pagination scroll to top with fixed menu bar’ is closed to new replies.