• Resolved filiped2018

    (@filiped2018)


    Hello!

    I’m using Ele Custom Skin to make some cards. In the loop I added a widget which I modified by doing this so that I could add color values to a background color from ACF Color picker field, however, the value is not passing when the widget is inside the loop.

    I’m sort of comfortable with code so if you could provide some pointers, maybe I could modify something to allow for the color values to pass.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dudaster

    (@dudaster)

    It is a way only with Elementor and it works in every template type not only Loop.
    I’ll give you an example with an Elementor Heading Widget.
    These are the steps:

    1. Insert Heading Widget with the HTML tag H2
    2. In the Elementor panel go to Advanced Tab > Attributes and from Dynamic select ACF Field
    3. Click the wrench icon to go to Custom field Settings select your color field
    4. In the same place below settings, please click on the Advanced tab and in Before field add: style|color:
    5. Under Attributes Tab you’ll see a Custom CSS tab. Click on it and add this css code: selector h2{ color:inherit;}

    Hopefully this example will give you an ideea how you can use attributes to your advantage.

    Plugin Author dudaster

    (@dudaster)

    With the code you sent the color is added inside template’s css which it is used once. ECS doesn’t make for each loop item a new css it uses the template’s css.

    Plugin Author dudaster

    (@dudaster)

    No reply. I take it as a yes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ACF Color Picker no passing value to loop’ is closed to new replies.