In the recent time, when we were working with a Client website, developed using Elementor. We received an error – Elementor Typography Error – “Elementor\Scheme_Typography” and we are gonna look into the issue and how to resolve it with simple technique.
Elementor is one the biggest and widely used site builder plugins in WordPress and most of the website.
After the recent update of WordPress to WordPress v 5.9.2 and Elementor to Elementor v 3.6.1, many themes and plugins seems to be broken and website shows,
There has been a critical error on this website.
In regard to this error, we started to dig and found that, the issue is with the theme and elementor plugin. As we gone through our error_log file in cpanel File Manager, we found that error is of, “PHP Fatal error: Uncaught Error: Class ‘Elementor\Scheme_Typography’ not found in home/username/public_html/wp-content/themes/themename/folder1/folder2/filename.php on some line”
(Username will your hosting/server login username, varies with providers. Theme Name, Folder Names and File Name too will be varying as per the Theme used by you. So, in order to edit as per our suggestion, please first check the error_log in your cpanel > File Manager for more information.)
To resolve this Elementor Typography Error, We came up with 2 different solutions.
Solution 1:
Rewrite the Code from Scheme_Typography to \Elementor\Core\Schemes\Typography
From (Old Deprecated Version)
'scheme' => [ 'type' => Scheme_Typography::get_type(), 'value' => Scheme_Typography::COLOR_1, ],
To (New Version)
'scheme' => [ 'type' => \Elementor\Core\Schemes\Typography::get_type(), 'value' => \Elementor\Core\Schemes\Typography::COLOR_1, ],
Solution 2:
As suggested in the below image, Login into your WordPress Admin Dashboard area. Go to Elementor > Settings. You can find Post Types, Disable Default Colors and Fonts, and etc.
Just check both Default Colors & Default Fonts, as shown in below pic. Click on Save Changes to update the settings.
Once Saved, Please clear your browser Cache, Caches from your Cache Plugins and Caches from your server (few server/hosting providers support cpanel web caching such as https://india.resellerclub.com, https://bigrock.in, etc.) and check whether your website loads.
Tada… Your website is back again to normal working state.
Please make the changes and let us know in comments if you have any other queries or errors.
Also Read: WordPress – Elementor Scheme Color Error – “Elementor\Scheme_Color”
1 Comment
Hi,
I have a Theme (Dustar) which is a little bit different, so the solution is a little bit different.
Deprecated code:
$this->add_group_control(
Group_Control_Typography::get_type(),
[
‘label’ => esc_html__( ‘Typography’, ‘dustar-core’ ),
‘name’ => ‘sub_title_typography’,
‘scheme’ => Scheme_Typography::TYPOGRAPHY_1,
‘selector’ => ‘{{WRAPPER}} .section-title > span, .section-title-s2 > span’,
]
);
New version:
$this->add_group_control(
Group_Control_Typography::get_type(),
[
‘label’ => esc_html__( ‘Typography’, ‘dustar-core’ ),
‘name’ => ‘section_content_typography’,
‘scheme’ => Core\Schemes\Typography::TYPOGRAPHY_1,
‘selector’ => ‘{{WRAPPER}} .about-section .details p,.about-section .details li,.about-section .details h4,.about-section-s3 .text p,.about-section-s2 .details p,.about-section-s2 .details ul li’,
]
);
So I had to remove Scheme_Typography and replace with: Core\Schemes\Typography and your solution worked like a charm.
Maybe helps for others also. 🙂