6 Comments

  1. Rafael Funchal (@RafaelFunchal)

    Extremely helpful.

    Report

  2. Philip Arthur Moore

    A good practice here is to make sure you prefix your script handle with your theme or plugin name. For example, instead of googleFonts use theme-slug-googleFonts; this will help to avoid potential conflicts with other themes or plugins that have also tried to take googleFonts for their own use.

    Report

  3. Steven Gliebe

    This is good to know. I was using is_ssl() ? ‘https’ : ‘http’

    Report

  4. Flick

    Thanks for the info :) Never knew this about SSL – learn something new everyday!

    Report

  5. Ulrich

    @sarah Please update the code as what you have there would not be approved by the theme review team. It should be something like this: https://gist.github.com/grappler/9728526 Thanks

    Report

  6. Rolando

    Great!

    This script works very good! but when the user enters the site from any browser, without warning (only the symbol appears next to the URL bar), notice to allow loading insecure content. then until the user does not allow upload content, the fonts remain in Times New Roman :(

    Any way to fix this and load the Google Fonts directly without permission browser?

    Thank you very much!

    Report

Comments are closed.

%d bloggers like this: