• Hi I was reading the description and saw the part about this using hooks and filters for “advanced integration”. I’m wondering if there is anywhere that documents these hooks/filters or if we’re suppose to just look through the code.

    The main thing I’m trying to do at the moment is edit the font list. I have few premium fonts like gotham and proxima nova I’d like to add to my site using the default list or google list.

    I’m thinking to add_filter the tt_font_default_fonts_array and then add my font using an array:

    $atts = array(
        'name'            => $font,
        'font_type'      => 'default',
        'font_weights' => $attributes['weights'],
        'subsets'         => array(),
        'files'               => array(),
        'urls'                => $urls,
    );

    Can you tell me if I’m on the right track here? Am I using the right filter?

    Thanks for any help or direction!

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

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

    (@sunny_johal)

    Hi Bryan,
    Read this thread to see an example of adding premium fonts (although I’ve made it possible to add your own fonts, the primary function of this plugin is for google fonts).

    Read this thread to see an example of registering your own theme font controls.

    Hope that helps. Let me know how you get on. Cheers
    Cheers

    Sunny

Viewing 1 replies (of 1 total)
  • The topic ‘Advanced Integration’ is closed to new replies.