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.
Adding a "paginated" class to the
<body> tag would do the trick. How can I do that?