Support » Plugin: Easy Google Fonts » Getting Font family names as PHP variables

  • Resolved jordesign

    (@jordesign)


    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 h1

    just so I can use that as a less variable to apply to many other selectors?

    Thanks so much

    https://wordpress.org/plugins/easy-google-fonts/

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

    (@sunny_johal)

    Hi jordesign,
    This issue would be outside of the support that we would provide. But to point you in the right direction have a look at the output_styles() function in the class-egf-frontend.php file to see how I access properties set for each font control option. Cheers

    Sunny

    Ok cool – thanks Sunny

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting Font family names as PHP variables’ is closed to new replies.