Last active
September 22, 2021 06:11
-
-
Save bigdigital/05429becfe3add001f435487bdeee6a9 to your computer and use it in GitHub Desktop.
Bring back Elementor pro theme styles in The7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'after_setup_theme', 'enable_kit_manager', 20 ); | |
function enable_kit_manager() { | |
$kit_manager_control = The7_Elementor_Compatibility::instance()->kit_manager_control; | |
remove_action( 'elementor/init', [ $kit_manager_control, 'disable_elementor_kit_manager'] , 1 ); | |
} | |
add_action( 'elementor/editor/footer', 'the7_elementor_editor_custom_html' ); | |
function the7_elementor_editor_custom_html(){ | |
?> | |
<style> | |
.elementor-panel .elementor-panel-menu-item-theme-style-buttons, | |
.elementor-panel .elementor-panel-menu-item-theme-style-form-fields, | |
.elementor-panel .elementor-panel-menu-item-theme-style-images, | |
.elementor-panel .elementor-panel-menu-item-theme-style-typography { | |
display: table !important; | |
} | |
</style> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment