I want to display color images on product listing page https://prnt.sc/sush2z. I have made color attribute and selected swatch option. Assigned color images too. https://nimb.ws/Sw9mEN

Did Visible on product listing as yes https://nimb.ws/ux3R5y

Still it does not show on product listing page. Can anybody help?

1 Answer 1


.check this file


around line number 72

<?php if ($_product->isAvailable()) :?>
  <?= $block->getProductDetailsHtml($_product) ?>
<?php endif; ?>

This code is responsible to show the swatches in frontend.

You can add it in your theme in the below file


Hope it solves your issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.