2

I have created size attribute with visual swatch field now in the fronted when we hover at option it is displaying the value/s for the users. Instead of changing to text swatch how to display the label (or) respected value on that size attribute in the layered navigation.

Please refer the below screenshot so that will get some idea.

could you please suggest.

enter image description here

2 Answers 2

3

If you want to add text in swatches then you should use "Text Swatch" instead of "Visual Swatch". Refer below screenshot:

enter image description here

3
  • Hi @chintan instead of changing from visual swatch to text swatch is there any alternative way to do? Aug 27, 2018 at 6:34
  • @NagarajuKasa I don't know it for sure but maybe we can do it programmatically. Aug 27, 2018 at 6:41
  • Then please update that here. Jun 2, 2020 at 17:34
0

You can override this file to your theme

vendor/magento/module-swatches/view/frontend/templates/product/layered/renderer.phtml

and make changes.

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.