I am working on a Magento 2.1.7 shop and I have created a child-theme of Magento Blank.
The products are 12 per page by default, but the user has the option to show 24 products per page.
Some (category) pages have less than 12 products, therefore, there is no pagination. I want, in such cases, the "per page" select box not to be displayed.
How can I do that?