• Hi, i have seen your great plugin. Congrats for the good work. I am so interested in the way you retrieve the fonts from Google in Theme Customizer and then update the font weights available in next dropdown selection.

    Would it be possible to use this feature for another plugin i am coding? Could you tell me which is the logical in this and which are the file/functions involved to try to fork my own customized release?

    Thank you very much!

    https://www.ads-software.com/plugins/easy-google-fonts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sunny Johal

    (@sunny_johal)

    Hi Mimo,
    First I get the request the data from google using PHP (all functions for this can be found in includes/class-egf-font-utilities.php). Google returns a file with the fonts as json objects. I then enqueue this JSON object in the customizer and have written some jQuery code (check the function line 188 in assets/js/customizer-controls.js) to enable the font weight selection functionality. Cheers

    Sunny

    Thread Starter mimo

    (@mimothemes)

    Hi,

    thank you very much for the info. I will take a look to the code and try it. Congratulations for your great plugin.

    Thanks again.
    Best Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Replicate google font selectors’ is closed to new replies.