• Resolved mdsabuz

    (@mdsabuz)


    How to set default typography options? This is what I am using right now:

    Group_Control_Typography::get_type(),
    [
        'name' => 'typography',
        'scheme' => Scheme_Typography::TYPOGRAPHY_1,
        'fields_options' => [
            'typography' => 'custom',
            'font_family' => [
                'default' => 'Playfair Display',
            ],
            'font_size' => [
                'default' => [
                    'unit' => 'px',
                    'size' => '17',
                ],
            ],
            'font_weight' => [
                'default' => '700',
            ],
            'line_height' => [
                'default' => [
                    'unit' => 'px',
                    'size' => '50',
                ],
            ],
        ],
    ]

    But this is not working when loading the page. But working after clicking on typography options

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