• Resolved ThemeAWESOME

    (@tsquez)


    Hi there,

    Yep me again…lol

    Sorry have another question for you this time regarding the Typography variants. before adding your plugin i was loading Source Sans Pro with 400, 700 and 900.

    After adding your plugin and adding the typography control, it now only loads 400.

    Is there a way to also load the 700 and 900?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Example code:

    Kirki::add_field( 'my_config', array(
        'type'        => 'typography',
        'settings'    => 'body_typography',
        'label'       => __( 'Body Typography Control', 'text-domain' ),
        'section'     => 'my_section',
        'default'     => array(
            'font-family'    => 'Roboto',
            'variant'        => 'regular',
            'font-size'      => '1em',
            'line-height'    => '1.5',
            'letter-spacing' => '0',
            'text-transform' => 'none',
            'subsets'        => array( 'latin' ),
        ),
        'choices' => array(
            'variant' => array(
                'regular',
                'italic',
                '700',
                '700italic',
                '900',
                '900italic'
            ),
        ),
        'transport'   => 'auto',
        'output'      => array(
            array(
                'element'    => 'body',
            ),
        ),
    ) );
    Thread Starter ThemeAWESOME

    (@tsquez)

    Awesome. I’ll have to try this later, I’m off to work. I’ll let yah know how it goes, but I am pretty sure it’s gonna rock as usual.

    Thanks again ??

    Thread Starter ThemeAWESOME

    (@tsquez)

    Worked perfectly, thank you very much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Typography Variant’ is closed to new replies.