kirki icon indicating copy to clipboard operation
kirki copied to clipboard

Reset button

Open famfam opened this issue 11 years ago • 10 comments

Is possible add a reset button to default values in sections and/or panels?

famfam avatar Apr 28 '15 17:04 famfam

This is not currently possible. However it's on our TODO list. If you're using theme_mods and you want a global reset button then you could use this plugin: https://wordpress.org/plugins/customizer-reset-by-wpzoom/screenshots/

aristath avatar Apr 29 '15 11:04 aristath

In the ideal situation ,each control should has a separate reset button.

DevelopOnline avatar May 12 '15 12:05 DevelopOnline

I agree this would be useful. But, in the meantime, thanks for the tip about the Customizer Reset plugin. It does what I was looking for.

misfist avatar Mar 19 '16 23:03 misfist

Reset buttons are a bit weird. I mean sure, it's possible... But the problem is what to reset. Should you have a reset on each control? On each section? Perhaps on each panel? Or global? That's why I haven't even touched this one... The nightmare part of this issue is not the technical part, but the usability part.

aristath avatar Mar 20 '16 00:03 aristath

For me, I wanted to reset everything because I'm testing. The Customizer Reset plugin does just that. So, this enhancement doesn't seem like a high priority.

misfist avatar Mar 20 '16 00:03 misfist

Having used ReduxFramework for quite some time, I am really missing the Reset Button. I would prefer section based reset button.

Vishal-Deshpande avatar Mar 26 '16 05:03 Vishal-Deshpande

I guess resetting settings on a per-section basis makes sense... Reset implemented on https://github.com/aristath/kirki/commit/d2d8f1064450d330e68b4871104e1dc78cc37833 Not all control-types can be reset, it's still a work in progress. but most of them work fine.

aristath avatar Mar 26 '16 13:03 aristath

Reset Button is working nicely except on

  1. Repeater
  2. Sortable
  3. Textarea

Vishal-Deshpande avatar Mar 27 '16 04:03 Vishal-Deshpande

@aristath

I think you missed my above comment. Can you please have a look at it?

Vishal-Deshpande avatar Mar 29 '16 11:03 Vishal-Deshpande

@PlayerThemes I Created separate issues for those.

aristath avatar Mar 29 '16 18:03 aristath