Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Override the GeneratePress function that changes the navigation template
- * We do this to fix the Site Reviews ajax pagination
- * Paste this in your active theme's functions.php file.
- * @param string $template
- * @param string $class
- * @return string
- */
- if( !function_exists( 'generate_modify_posts_pagination_template' )) {
- function generate_modify_posts_pagination_template( $template, $class ) {
- if( !empty( $class )
- && false !== strpos( $class, 'pagination' )
- && false === strpos( $class, 'glsr-' )) {
- $template = '<div class="nav-links">%3$s</div>';
- }
- return $template;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement