2

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

1
  • did solution worked for you ? Commented Sep 1, 2017 at 12:53

1 Answer 1

5

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

app/design/frontend/vendor-name/theme-name/Magento_Catalog/templates/product/list/toolbar.phtml

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

2
  • Worked without me running the php commands. Thanks for the commenting out tip, so much better than deleting code.
    – Kaki Sami
    Commented Sep 1, 2017 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 Commented Sep 1, 2017 at 14:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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