Nuxy
Search…
28. Typography
Complex field with font settings including preview from google fonts
1
'typography' => array(
2
'type' => 'typography',
3
'label' => esc_html__('Typography', 'my-domain'),
4
'excluded' => array(
5
'font-family',
6
'backup-font'
7
)
8
),
Copied!
Also, you can exclude fields from component:
1
'typography_excluded' => array(
2
'type' => 'typography',
3
'label' => esc_html__('Typography', 'my-domain'),
4
'excluded' => array(
5
'backup-font',
6
'font-size',
7
'font-weight',
8
'line-height',
9
'letter-spacing',
10
'word-spacing',
11
'text-transform',
12
'color'
13
)
14
),
Copied!
Last modified 11mo ago
Copy link