Is it possible to hide pagination and item count from Magento 2? Preferably only for specific category but if not possible then for all categories...


enter image description here

  • did solution worked for you ? – Manoj Deswal Sep 1 '17 at 12:53

This is one way to hide limiter and count from listing Page, there can be others as well

Update your extended toolbar.phtml file and Find it at your extended theme path or if not then copy from vendor


To hide limiter and count from listing Page comment these lines of code

( added // before "include", this is how we comment php code)

<?php //include ($block->getTemplateFile('Magento_Catalog::product/list/toolbar/limiter.phtml')) ?>

<?php //include ($block->getTemplateFile('Magento_Catalog::product/list/toolbar/amount.phtml')) ?>

Keep cache disabled and run following commands if needed

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy

Tested and it works, should help you out as well

  • Worked without me running the php commands. Thanks for the commenting out tip, so much better than deleting code. – Kaki Sami Sep 1 '17 at 13:28
  • good, most of the time...these things works without commands , in case if not working then we can try after running commands – Manoj Deswal Sep 1 '17 at 14:02

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.