Created
November 15, 2024 13:39
-
-
Save xlplugins/ee4308a65f0ce2640caa9d935f8755ca to your computer and use it in GitHub Desktop.
Funnelkit Checkout: Compatibility added with Theme Sofass by Everthemes #Sofass#theme
This file contains 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
class WFACP_Theme_Sofass_by_GoalTheme { | |
public function __construct() { | |
add_action( 'after_setup_theme', [ $this, 'register_elementor_widget' ], 20 ); | |
add_action( 'wfacp_internal_css', [ $this, 'add_css' ], 20 ); | |
} | |
public function register_elementor_widget() { | |
if ( class_exists( 'Elementor\Plugin' ) && class_exists( 'WFACP_Core' ) ) { | |
if ( is_admin() ) { | |
return; | |
} | |
if ( false == wfacp_elementor_edit_mode() ) { | |
$instance = WFACP_Common::remove_actions( 'init', 'Sofass_Elementor_Extensions', 'elementor_widgets' ); | |
if ( $instance instanceof Sofass_Elementor_Extensions ) { | |
add_action( 'wp', array( $instance, 'elementor_widgets' ), 100 ); | |
} | |
} | |
} | |
} | |
public function add_css(){ | |
?> | |
<style> | |
body .woocommerce form .form-row input.input-text, | |
body .woocommerce form .form-row textarea { | |
border: 1px solid #bfbfbf !important; | |
background:transparent; | |
} | |
</style> | |
<?php | |
} | |
} | |
new WFACP_Theme_Sofass_by_GoalTheme(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment