Support

Account

Home Forums Front-end Issues Display multiply checked icons on frontend

Helping

Display multiply checked icons on frontend

    • patwp

    • February 20, 2021 at 9:49 am

    Hello,
    I have the following case to implement.
    I need to display 5 icons on the frontend.
    By default, all of them are to be gray.
    On the basis of the selected checkboxes in the backend panel, individual icons should be displayed in color.

    For example – I have icons A B C D E (all gray)
    If I select, for example, A and C checkboxes in the panel – these two appear in color (the rest are still gray).

    I prepared a field with checkboxes in ACF.

    The question is how to solve it from the code side? I am thinking of preparing each icon in the form of two pictures (png) – gray and colored. Then the code would have to trigger the display as selected for the selected checkbox.

    Could you please help me construct the code?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.