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
Now, I have added a color control in Customizer that I can use to change the border color, but to apply the change on the above selector (please imagine that's not the only one I have), I would have to do this:
'output' => array(
array(
'element' => '.header',
'property' => 'border-color',
),
array(
'element' => '.header',
'property' => '-webkit-box-shadow',
// yes, using the "pattern_replace"
),
array(
'element' => '.header',
'property' => '-moz-box-shadow',
// yes, using the "pattern_replace"
),
array(
'element' => '.header',
'property' => 'box-shadow',
// yes, using the "pattern_replace"
),
// and so on...
And this code would only get bigger....
The most reasonable solution would be to have "property" as an array as well, so for each entry in the array, apply the value...
@aristath Can you please have a look over this? I don't think it would be difficult to implement this functionality.
Thanks a bunch and keep up the good work!
Regards,
Costin
The text was updated successfully, but these errors were encountered:
Issue description:
I know this has been asked before (#72) but the current solution is not acceptable, especially if you have more than a few properties to set:
Version used:
latest (3.0.34.1)
Using theme_mods or options?
theme_mods
Code to reproduce the issue (config + field(s))
For example, I have these rules in my css (defaults):
Now, I have added a color control in Customizer that I can use to change the border color, but to apply the change on the above selector (please imagine that's not the only one I have), I would have to do this:
And this code would only get bigger....
The most reasonable solution would be to have "property" as an array as well, so for each entry in the array, apply the value...
@aristath Can you please have a look over this? I don't think it would be difficult to implement this functionality.
Thanks a bunch and keep up the good work!
Regards,
Costin
The text was updated successfully, but these errors were encountered: