Including Google Fonts inside a Theme
-
Hi,
I’m developing a theme and considering allowing the theme user to select google fonts and insert the embed html into the site via the customizer. This way user can select eg a font for headings / hero text etc.
1. Is this desirable? ie does adding google fonts in a theme exclude from inclusion on the WP theme registry?
2. what would be best approach? I want to enqueue etc – but there are three tags from google-fonts – pre-connects and then actual link. should I enqueue them all? or ok to <link> to first two pre-connects?
any advice or point to any examples would be appreciated
thanks
K
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Including Google Fonts inside a Theme’ is closed to new replies.