-
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
Typography control does not apply changes after save [$100] #717
Comments
'Please note that other controls work fine, this appears to be a glitch specific to this control.' |
Yes, after save letter spacing also doesn't change. |
Yes, everything in the typography control stops working after save.
Yup, that's because letter-spacing is part of the typography control. |
@carasmo thank you for contributing to the bounty... Hopefully someone will be able to help us resolve this one! |
This is significantly beyond my chops, but have you looked in the Easy Google Fonts customize-preview.js file or any of their stuff? The plugin is really smooth. The head comments read:
|
Ok after having spent a bit of time on this one I found a workaround for the problem even though I'm not 100% why using this method works while the old approach doesn't. The workaround is the following:
Now, this is just a workaround and I'm not even 100% sure why is working but maybe it will help @aristath to find the real problem |
@manuelmoreale Thanks! I hope this gets sorted soon. |
Finally fixed!!! The issue was that the object needed to be rebuilt when there was a change, just a JS quirk! |
Super excited! Thanks @aristath and @manuelmoreale! |
@aristath nice work. |
Thanks to both of you |
Issue: Typography control stops responding after its changes have been saved
How to replicate:
Install the develop branch of the plugin in a WordPress installation & activate the plugin.
Go to your theme's
functions.php
file and add the following:Then go to the customizer, make a change to the font-family for example, and you should see the font-family of the body change to what you have defined.
Next, save your changes.
Once you've saved your options, try changinf the font-family again.
You'll see that the preview refreshes but the changes made to the control are not getting applied.
the value is properly detected via the control's JS (using
control.setting.set( value );
, if you do aconsole.log( value );
you'll see it's fine there), but for some reason it's just not getting detected by the customizer.Please note that other controls work fine, this appears to be a glitch specific to this control.
There is a $100 open bounty on this issue. Add to the bounty at Bountysource.
The text was updated successfully, but these errors were encountered: