• Resolved abel1011

    (@abel1011)


    Hello,
    I’m using the Green Shift plugin and would like to know if it’s possible to recognize and display the value of a custom field created with ACF, specifically an “Icon Selector”, through the metagetter block or any other available block. The idea is to assign an icon to each category and have it displayed automatically in the interface.

    Additionally, I would like to know if it’s possible to apply dynamic colors to elements within the metagetter or any other block, based on a “Color Picker” custom field from ACF. This would allow certain elements to change their background, border, or other styles according to the value of the custom field.

    I would greatly appreciate any guidance on how to achieve these functionalities.

    Thank you and best regards!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wpsoul

    (@wpsoul)

    1. It depends on how ACF stores this data. If it’s image, then you can easily get it via Dynamic image
    2. Yes, we have dynamic attributes option. you will need to use something like

    Attribute “style”. in Value, enable dynamic field and use “color:{DYNAMIC}”

    possible also to use Interaction layers to add colors dynamically based on attribute

    https://greenshiftwp.com/dynamic-attributes/

    Thread Starter abel1011

    (@abel1011)

    Thank you for the response.

    For the icons, ACF stores the icon name as a text value (for example, a dashicon name). However, when I load this value, only the text appears instead of rendering the icon. Is it possible to add some output format that allows the dashicon to be rendered correctly, instead of just displaying the text of the icon name?

    I would appreciate any additional guidance on this matter.

    Best regards!

    Plugin Author wpsoul

    (@wpsoul)

    this is possible only if you have loaded full library on pages

    Then you can do the same as I replied about dynamic data. You can add dynamic “class” then output class name of icon

    Plugin Author wpsoul

    (@wpsoul)

    closing

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.