Hi,
Thanks for starting a new thread. I’m not sure if you are aware but you can use this plugin to create custom font controls without coding.
Example: Lets say I want to control a <h1> tag with the id site-title, here is what I would do:
Instructions: Creating a custom font control for your site title:
- Log in to your WordPress admin area and go to: Settings > Google Fonts
- Click create new font control and give your font control a name e.g Site Title and click the Create Font Control button. (If no other custom font controls exist then it will take you straight to the add new control screen)
- Once you have created your new font control enter the following text in the Add CSS Selectors input box:
h1#site-title
(Press tab after each selector)
- Click the Save Font Control button
- Visit the customizer and you will see your new font control which will allow you to control the site title
I hope that makes sense, if you still want to add !important suffix to each of the default controls please let me know and I will give you a code snippet to put in your theme. If you have any questions just give me a shout. Please let me know how you get on. Cheers
Sunny