Getting Font family names as PHP variables
-
Hi There – loving Easy Google Fonts so far – super slick plugin thank you.
I’m doing something with my theme/plugin setup (for a hosted multisite network) where I am pulling values in from the customizer as php variables and then feeding them through WP-Less.php to generate the stylesheet.
The inline styles work great for p and h1-6 tags – and while I could add custom controllers for all the other selectors – I’m actually interested in assigning the additional selectors (li’s, td’s, blockquotes) by getting them to match the selections made for paragraphs and headings.
So I’m just wondering if you can point me in the right direction as to how I would parse the tt_font_theme_options option to retrieve:
– font family name of the paragraph text
– font family name of the h1just so I can use that as a less variable to apply to many other selectors?
Thanks so much
- The topic ‘Getting Font family names as PHP variables’ is closed to new replies.