4

I want to remove just limiter from bottom toolbar in product listing page. enter image description here I've tried following code but not working, In local catalog_category_view.xml

  <referenceBlock name="product_list_toolbar_limiter" remove="true" />

2 Answers 2

5

Create this file in your theme:

Magento_Catalog/templates/product/list/toolbar.phtml

Copy from origianl file in:

vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar.phtml

Comment out this line (or remove it)

include ($block->getTemplateFile('Magento_Catalog::product/list/toolbar/limiter.phtml'))
4
  • Is this the only way?? Can't we do it via xml so we don't have to create these files?? Commented Sep 5, 2016 at 12:12
  • @KaushalSuthar From a code it turns out that it is the only way, since there are no special conditions for this block. Commented Sep 5, 2016 at 12:19
  • @KaushalSuthar I don't think this is correct. To me it looks like this code will remove both top and bottom limiters. The OP wants to remove the bottom one only. Commented Sep 5, 2016 at 12:23
  • @RaphaelatDigitalPianism : Hi, Well as of my requirement right-now I want the toolbar only in bottom I've commented $block->getToolbarHtml() in list.phtml in starting but I would like to know if you have some way to do so...And that limiter is coming only in bottom toolbar.... Commented Sep 5, 2016 at 12:32
0

Add this CSS to your _theme.less or _extend.less

.products.wrapper ~ .toolbar .limiter {
    display: none;
}

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.