Home Forums WoodMart support forum How to show icon in attributes?

How to show icon in attributes?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #126485

    owldigitals
    Participant

    Hi, on the product page I want to show icons with the name.

    I have an attribute created with (Image preview for this value) and can you please help me how to show it as a small icon on the product page?

    See the screenshot

    Thanks in advance

    Attachments:
    You must be logged in to view attached files.
    #126509

    Hello,

    There is no option to show the icon as you wish. Such an issue cannot be solved by custom CSS.

    Best Regards

    #126558

    owldigitals
    Participant

    Thanks Elise for reply.

    Can you please at least tell me from which file I can find the code to put it in the single product page?

    I found widget here: /wp-content/themes/woodmart/inc/widgets/class-widget-layered-nav.php

    I would really appreciate if you can give me the code to get the photo as an icon

    #126595

    Artem Temos
    Keymaster

    It is located in the file wp-content/plugins/woocommerce/templates/single-product/product-attributes.php

    #126611

    owldigitals
    Participant

    Thanks for the information and last question

    From which file can I get code to grab icon image and put it in this file?

    wp-content/plugins/woocommerce/templates/single-product/product-attributes.php

    #126615

    Artem Temos
    Keymaster

    You can check in the file /inc/integrations/woocommerce/modules/swatches.php

Viewing 6 posts - 1 through 6 (of 6 total)