-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Botton Set without refresh #1678
Comments
Can you please check the develop branch? |
Well, I just tried it and it still refreshes, do I need to pass any additional parameter or something I am missing? Please advice. TIA |
Oh I'm sorry, I completely misunderstood the original post. My bad... Instead I refactored the field dependencies implementation. Setting If that doesn't work can you please post the code you're using for that control and its dependent fields? |
Hi, I tried it, and this works without refresh, but then we have another issue where values do not save properly and revert back while switching. Difficult to explain so I have created a demo site and demo screencast to explain better. Code for the demo: Quick Screencast to explain the issue: Demo site, so you may test it yourself. Looking forward to your help. TIA, |
About the missing styles: As for the output: I just added 2 filters that will disable that default behaviour so you can use those: add_filter( 'kirki/start/webfonts/skip_hidden', '__return_false' );
add_filter( 'kirki/start/css/skip_hidden', '__return_false' );
Once you add those 2 lines in your theme it should work the way you want it. |
Awesome, That worked perfectly. Now only issue is with the missing CSS min file which looks like a bug in v3.0.17 |
Already fixed in the wordpress.org version. Delete your copy and redownload. It was a problem with the SVN push. |
Hi, This seems like since v3.0.22 the filters solution you provided to make button groups work as tabs don't work. I can see in the changelog that you have removed webfonts.php and now use the json file. Could you please suggest an updated solution to this use case? I have used this extensively in my theme and now If I update to latest version of kirki nothing works :( Looking forward to your response. TIA, |
Can you try using this instead of the previous filters? add_filter( 'kirki_start_webfonts_skip_hidden', '__return_false' );
add_filter( 'kirki_start_css_skip_hidden', '__return_false' ); |
Thank you, that did the trick. |
Issue description:
I've used buttons set to conditionally show/hide some controls. It works but with refresh, Is it possible to make it work without refresh? I've tried all 3 transport choices and without luck.
Anyone got a solution for this, please?
Version used:
Latest stable version
Using theme_mods or options?
theme_mods
Code to reproduce the issue (config + field(s))
The text was updated successfully, but these errors were encountered: