You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use repeater's color picker result with wp_add_inline_style
but since the principle of repeater is to add multiple repeatable blocks of fields i don't see how style differently this repeatable blocks of fields. For example in my repeater i have a title field and a color picker
You can use the array keys as unique identifiers for the rows, see: #908 (comment)
Basically each repeater row gets its own unique index in the array returned by get_theme_mod() so to target one section individually you'd want to add a class or ID to that element containing the key.
I'm trying to use repeater's color picker result with wp_add_inline_style
but since the principle of repeater is to add multiple repeatable blocks of fields i don't see how style differently this repeatable blocks of fields. For example in my repeater i have a title field and a color picker
In this example the title color of the different section will have the same color
The text was updated successfully, but these errors were encountered: