I am working on a Magento 2.1.7 shop and I have created a child-theme of Magento Blank.
I need to add class "paginated" to the body tag if the products category pages display pagination.
I have copied the
pager.phtml file to
app/design/frontend/Company/Theme/Magento_Theme/templates/html/, so that I can safely overwrite the defaults.
In this file, there is an if statement that "decides" when the pagination is displayed:
<?php if ($block->getLastPageNum()>1): ?> // Pagination code here <?php endif; ?>
Is there anything I can add inside this if statement that would add class "paginated" to the body tag?