gpt4 book ai didi

php - 我正在尝试使用Elementor Typography Control。但这不起作用

转载 作者:行者123 更新时间:2023-12-03 08:43:17 26 4
gpt4 key购买 nike

现在,我正在使用This For Elementor Control。
我尝试了近10次,但是没有用。
有人请帮助我。我不知道为什么它不起作用。其他控件工作正常。都准备好了。只有版式控件不起作用。


//slide control
$this->start_controls_section(
'hero_area_section',
[
'label' => __( 'Content', 'plugin-name' ),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
]
);

$this->add_control(
'bg', [
'label' => __( 'Background', 'plugin-domain' ),
'type' => \Elementor\Controls_Manager::MEDIA,
'label_block' => true,
]
);
$this->add_control(
'title', [
'label' => __( 'Title', 'plugin-domain' ),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'label_block' => true,
]
);
$this->add_control(
'cap', [
'label' => __( 'Caption', 'plugin-domain' ),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'label_block' => true,
]
);

$this->add_group_control(
Group_Control_Typography::get_type(),
[
'name' => 'title_typography',
'label' => __( 'Title Typography', 'my-plugin-domain' ),
'scheme' => Scheme_Typography::TYPOGRAPHY_1,
'selector' => '{{WRAPPER}} h3',

]
);

$this->end_controls_section();```



And this is not working and showing this Erro:

**Fatal error: Uncaught Error: Class 'Group_Control_Typography' not found in C:\xampp\htdocs\kaye\wp-content\plugins\toolkit\widgets\hero_area.php:66 Stack trace: #0 C:\xampp\htdocs\kaye\wp-content\plugins\elementor\includes\base\controls-stack.php(1900): rrfCommercew_hero_area->_register_controls() #1 C:\xampp\htdocs\kaye\wp-content\plugins\elementor\includes\base\controls-stack.php(487): Elementor\Controls_Stack->init_controls() #2 C:\xampp\htdocs\kaye\wp-content\plugins\elementor\includes\base\widget-base.php(148): Elementor\Controls_Stack->get_stack() #3 C:\xampp\htdocs\kaye\wp-content\plugins\elementor\includes\base\controls-stack.php(280): Elementor\Widget_Base->get_stack() #4 C:\xampp\htdocs\kaye\wp-content\plugins\elementor\includes\base\controls-stack.php(1935): Elementor\Controls_Stack->get_controls() #5 C:\xampp\htdocs\kaye\wp-content\plugins\elementor\includes\base\controls-stack.php(1022): Elementor\Controls_Stack->sanitize_settings(Array) #6 C:\xampp\htdocs\kaye\wp-content\plugins\elementor\includes\base\eleme in C:\xampp\htdocs\kaye\wp-content\plugins\toolkit\widgets\hero_area.php on line 66**

最佳答案

在Group_Control_Typography使用\ Elementor \之前,您在上一节中所做的工作。

关于php - 我正在尝试使用Elementor Typography Control。但这不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59729251/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com