I want to add one css class when on search of a particular product we does not get any result see https://prnt.sc/oyh8h9 and https://prnt.sc/oyh90w. I want to add class in footer block based on the result for product search. Any idea.
The file you are looking for is this one:
The conditional you need to check is this one:
<?php if ($block->getResultCount()): ?>
So if no count of results you can edit the response for it. Change HTML markup, etc.
What I don't quite follow is why you would change the
footer? If that is the case, on the
else in that conditional you can create a custom