Adding Typography Control to Elementor widget

I have created a widget in Elementor,now i would like to allow the fonts to be customizable

As per developer documentation it is said that the below code to be used for doing that.

$this->add_control(
Group_Control_Typography::get_type(),
[
‘name’ => ‘content_typography’,
‘label’ => __( ‘Typography’, ‘plugin-domain’ ),
‘scheme’ => Scheme_Typography::TYPOGRAPHY_1,
‘selector’ => ‘{{WRAPPER}} .text’,
]
);

I am targeting that “text”class but the fields are not showing up. when i add this a text field is only being getting generated . It is supposed to display input fields to define the content typography including font size, font family, font weight, text transform, font style, line height and letter spacing.

This is the link :
https://developers.elementor.com/elementor-controls/typography-control/

What could i possibly doing wrong?
Thanks

Read more here:: Adding Typography Control to Elementor widget

Leave a Reply

Your email address will not be published. Required fields are marked *