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
Hi, I'd like to be able to import widget class settings via theme level.
Can you provide an example of how this might be done and still allow the user to modify the settings? Would you recommend attaching this to after_theme_setup? Thanks!
Hi @simplethemes
The next release will feature a new hook for this: widget_css_classes_set_settings.
Within that hook you can overwrite the plugin settings on theme level.
still allow the user to modify the settings
This might be tricky. It will involve changing the default settings I suppose. I will think about how to do this and reply here.
Activity
JoryHogeveen commentedon Jun 20, 2017
Hi @simplethemes
The next release will feature a new hook for this:
widget_css_classes_set_settings.Within that hook you can overwrite the plugin settings on theme level.
This might be tricky. It will involve changing the default settings I suppose. I will think about how to do this and reply here.
Default settings logic and filter
JoryHogeveen commentedon Jun 20, 2017
Default settings should indeed work for this. I've added the feature in #22
Filter:
widget_css_classes_default_settings