Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nemke_bg

    (@nemke_bg)

    Example fields that I’m using now which doesn’t tranfer google fonts to typography field:

    – id: ‘setting_google_fonts’
    label: ‘Available Google fonts’
    desc: ‘Google fonts you choose here, will be added to the header and it will be availabe to choose them for parts of your site in section Fonts and colors.’
    type: ‘google_fonts’
    section: ‘section_google_fonts’

    – id: ‘setting_main_font’
    label: ‘Main font (body)’
    desc: ‘Choose parameters for Main font of the theme.’
    type: ‘typography’
    section: ‘section_fonts_and_colors’
    std: {font-color: ‘#48494A’, font-size: ’16px’, font-family: ‘helvetica’, font-weight: ‘normal’}

    Don’t mind YAML format, it’s just easier to store them in YAML for me at least ??

    Plugin Author Derek Herman

    (@valendesigns)

    The Google Fonts option type doesn’t need additional modifications to be seen in the Typography option type. You just have to save the Google Fonts before they are seen in the typography font family dropdown.

    Plugin Author Derek Herman

    (@valendesigns)

    I don’t find how to use typography field. How do we insert the typography options into the theme?
    $typographie = ot_get_option('typography');
    <?php echo $typographie; ?> returns an array… any advice is welcome.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Google fonts with Typography’ is closed to new replies.