Glad to hear it’s been useful for you. ??
If you see an option in Customizer, but it has no effect, that would be because of a CSS class or ID mismatch.
If you see the option in Customizer, it changes the setting, but then does not “stick” when saved, that’s because your CSS matches, but the parent theme probably has a VERY aggressive CSS selector or is using !important
. Add "important": true
to that option in customize.json
, or try matching the CSS selector the parent theme uses. Note: using important may cause a slight delay in preview refresh.
If none of your options show up in Customizer, it’s because the theme name in your plugin.php
header Plugin Name: Styles: XXX
doesn’t match the theme name in the theme’s style.css
Theme Name: XXX
, and the name of your plugin directory styles-xxx
doesn’t match the name of your theme directory themes/xxx. One of these has to match for Styles to auto-load the options.