Fatal error: Class ‘ElementorWidget_Base’ not found in F:xammphtdocsvendadwp-contentthemesvendadelementorwidget-search.php on line 4

Question

after updating elementor,my site this error:Fatal error: Class ‘ElementorWidget_Base’ not found in F:xammphtdocsvendadwp-contentthemesvendadelementorwidget-search.php on line 4
and file widget-search.php is:

<?php
namespace Elementor;

class search extends Widget_Base {

    public function get_name() {
        return 'search';
    }

    public function get_title() {
        return 'ونداد - جستجو';
    }

    public function get_icon() {
        return 'fa fa-search';
    }

    public function get_categories() {
        return [ 'basic' ];
    }

    protected function _register_controls() {

        $this->start_controls_section(
            'section_title',
            [
                'label' => __( 'Content', 'elementor' ),
            ]
        );

        $this->add_control(
            'posts_per_page',
            [
                'label' => __( 'عنوان', 'elementor' ),
                'label_block' => true,
                'type' => Controls_Manager::TEXT,
                'placeholder' => __( 'یک عنوان وارد کنید', 'elementor' ),
            ]
        );



        $this->end_controls_section();
    }

    protected function render() {
        include es_TPL_PATH . 'search.php';
    }

    protected function _content_template() {

    }


}

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/fatal-error-class-elementorwidget_base-not-found-in-fxammphtdocsvendadwp-contentthemesvendadelementorwidget-search-php-on-line-4/">

Fatal error: Class 'ElementorWidget_Base' not found in F:xammphtdocsvendadwp-contentthemesvendadelementorwidget-search.php on line 4</a>
0
, , , , narcisism 2 months 0 Answers 48 views 0

Leave an answer