I am working with Magento2. Category pages seem to be not calling the Pagination at all.

I can see in toolbar.phtml

<?php echo $block->getPagerHtml() ?>

it is there correctly but doesn't show on the category page, and can't find the call needed for the XML in case this is the issue

To note, the category page has over 15 products and the Pagination doesn't display in the source

  • Make sure you did not installed Infinite Scroll module, because it is hide pagination. – Sunil Patel Nov 5 '17 at 7:28

You should add this method to your class if you haven't added yet. If you don't see it yet, you should debug this method. Don't forget to add your own _getProductCollection method with your collection, and setCollection() nethod.

 * Retrieve Toolbar block
 * @return \Magento\Catalog\Block\Product\ProductList\Toolbar
public function getToolbarBlock()
    $blockName = $this->getToolbarBlockName();
    if ($blockName) {
        $block = $this->getLayout()->getBlock($blockName);
        if ($block) {
            return $block;
    $block = $this->getLayout()->createBlock($this->_defaultToolbarBlock, uniqid(microtime()));
    return $block;

Pagination is display if product are greater than 9 by default setting.

By default pagination display in listing page at bottom left.

But if you want to display pagination at top you have to set display block property to .toolbar-products .pages{display : block} class in styles-m.css

  • As explained, it not showing at all, our toolbar is displaying correctly as part of it is showing and we have 15 products on the category – lee murphy Apr 12 '16 at 16:11
  • you have to check using inspect element and find .toolbar-products .pages class and check its visibility. – Rakesh Jesadiya Apr 12 '16 at 16:12
  • If I check the source code, the html for the pagination isn't there at all. Edit question to make this more clear. – lee murphy Apr 12 '16 at 16:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.