I have an options page where the customer can choose colors for his layout:
Now i would like to add some kind of “load color preset” like shown in the image. Any idea how to do this?
You would create acf/load_field filters for each of the fields you want to preset the values for.
The example shows how to set ‘choices’ but it can also be used to set any of the values of a field.
Hmm.. I suppose you could do this by adding some custom JS to the page.
Basically you’ll save some site meta information containing these default presets (in wp_options).. perhaps that’s something you should do on activation of the theme but I leave that up to you.