Astra_Elementor::elementor_add_scripts()

Load style inside Elementor editor.


Description


Return

(void)


Source

File: inc/compatibility/class-astra-elementor.php

		public function elementor_add_scripts() {

			$editor_preferences = SettingsManager::get_settings_managers( 'editorPreferences' );
			$theme              = $editor_preferences->get_model()->get_settings( 'ui_theme' );
			$style              = 'dark' == $theme ? '-dark' : '';

			wp_enqueue_style( 'astra-elementor-editor-style', ASTRA_THEME_URI . 'inc/assets/css/ast-elementor-editor' . $style . '.css', array(), ASTRA_THEME_VERSION );
		}

Changelog

Changelog
Version Description
3.7.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.