Cara memperbaiki error Class ‘Elementor\Scheme_Color’ not found

Toturial cara memperbaiki error Class ‘Elementor\Scheme_Color’ not found pada plugin Elementor versi terbaru.

  1. Buat folder mu-plugins di dalam wp-content
  2. buat file elementor_color.php di dalam folder mu-plugins

Isinya

<?php
/**
 * Plugin Name: Elementor Scheme_Color and Scheme_Typography Class Issue
 **/

namespace Elementor;

\add_action(
  'plugins_loaded',
  function() {
    if ( ! class_exists( 'Elementor\Scheme_Color' ) ) {
      class Scheme_Color extends Core\Schemes\Color {}
    }
  }
);
\add_action(
  'plugins_loaded',
  function() {
    if ( ! class_exists( 'Elementor\Scheme_Typography' ) ) {
      class Scheme_Typography extends Core\Schemes\Typography {}
    }
  }
);

Simpan.

Add a comment

Exit mobile version