add_action( 'elementor/element/section/section_typo/after_section_start', function( $element, $args ) { /** @var \Elementor\Element_Base $element */ $element->add_control( 'custom_control_typo', [ 'type' => \Elementor\Controls_Manager::TEXT, 'label' => __( 'Custom Font', 'plugin-name' ), 'dynamic' => [ 'active' => true, ], 'selectors' => [ '{{WRAPPER}} h2, {{WRAPPER}} p, {{WRAPPER}} a' => 'font-family: {{VALUE}}!important' ], ] ); }, 10, 2 );
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter