Home Forums WoodMart support forum Pagination Issue

Pagination Issue

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #400877

    therugs
    Participant

    Hi,

    When i click on Page 2 for any product category and then after click on page 1 , the URL still includes page suffix even though Page 1 is the main category.

    For ex;
    ‘the-rugs.com/outdoor-rugs’ is the main category URL. When on page 2, the URL has ” /page/2″ at the end. After clicking on page 1, Normally URL should be plain the-rugs.com/outdoor-rugs, however, it ends up showing as ‘the-rugs.com/outdoor-rugs/page/1’

    How do I fix this?

    Thanks

    #400981

    Hello,

    Please deactivate all the plugins except these ones:

    Slider Revolution
    WPBakery Page Builder or Elementor
    Woodmart Core
    Contact Form 7
    MailChimp for WordPress
    WooCommerce
    Safe SVG

    If the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.

    In case, the problem remains, even after all the plugins are deactivated, provide your site admin access (insert the site credentials into the Private content block under the message area) and confirm the permission for plugins deactivation, switching to the parent or default theme. As soon as we complete the testing we will enable all back, however, the site would be without plugins for 15-20 min. You would better make the full backup of your site.

    Best Regards

    #417626

    therugs
    Participant

    Hi ,

    I have tried that on stagging. The issue is not fixed. Still directing to page/1/ URL

    #418147

    Hello,

    Please add this code to the functions.php of the child theme:

    add_action( 'init', 'wd_update_pagination_links' );
    
    function wd_update_pagination_links() {
    	add_filter( 'paginate_links', function( $link ) {
    		return str_replace( '/page/1/', '/', $link );
    	});
    }

    If you have any questions please feel free to contact us.

    Best Regards

Viewing 4 posts - 1 through 4 (of 4 total)