Support

Account

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

Helping

Display multiply checked icons on frontend

  • 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.