I can not find how to remove items from the bottom toolbar. Which file is affected ?
Solved! Go to Solution.
You can rewrite vendor/magento/module-catalog/Block/Product/ProductList/Toolbar.php file and add you own template instead of
protected $_template = 'Magento_Catalog::product/list/toolbar.phtml';
Then you can remove sort by or limit section from phtml or add any new section as per your requirement.
Someone gave me this solution in CSS and it works:
.toolbar-bottom .toolbar-sorter,.toolbar-bottom .limiter,.toolbar-bottom .toolbar-products .toolbar-amount {display: none;}
Can you tell me what you want to remove or can show me the screenshot? So that I can help you in a better way.
You can rewrite vendor/magento/module-catalog/Block/Product/ProductList/Toolbar.php file and add you own template instead of
protected $_template = 'Magento_Catalog::product/list/toolbar.phtml';
Then you can remove sort by or limit section from phtml or add any new section as per your requirement.
Both at top and bottom toolbar have same css class. so we can hide last div by jquery.
$('.toolbar-products div:last-child').css("display","none");